/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* UI Style 7: Deep Blue/Indigo Theme */
.ui-style-7 {
  background: #0a1929;
  color: #e0e0e0;
}

.ui-style-7 .site-header {
  background: #132f4c;
  border-bottom: 1px solid #1e4976;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ui-style-7 .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui-style-7 .logo a {
  font-size: 24px;
  font-weight: bold;
  color: #ffc107;
  white-space: nowrap;
}

.ui-style-7 .main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

.ui-style-7 .main-nav a {
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
  color: #90caf9;
  white-space: nowrap;
  font-size: 15px;
}

.ui-style-7 .main-nav a:hover {
  background: #1e4976;
  color: #ffc107;
}

/* Hero Section */
.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
  padding: 80px 16px;
  text-align: center;
}

.ui-style-7 .hero-title {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}

.ui-style-7 .hero-subtitle {
  font-size: 18px;
  color: #ffc107;
}

/* Intro Section */
.ui-style-7 .intro-section {
  background: #132f4c;
  padding: 48px 16px;
  margin: 32px 0;
}

.ui-style-7 .intro-section p {
  line-height: 1.8;
  color: #b0bec5;
  font-size: 16px;
}

/* Section Titles */
.ui-style-7 .section-title {
  font-size: 28px;
  margin-bottom: 24px;
  color: #ffffff;
  border-left: 4px solid #ffc107;
  padding-left: 16px;
}

.ui-style-7 .featured-section,
.ui-style-7 .ranking-section,
.ui-style-7 .latest-section {
  padding: 48px 0;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Video Cards */
.ui-style-7 .video-card {
  background: #132f4c;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ui-style-7 .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255,193,7,0.2);
  border: 1px solid #ffc107;
}

.ui-style-7 .video-card__link {
  display: block;
}

.ui-style-7 .video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a1929;
  overflow: hidden;
}

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

.ui-style-7 .video-info {
  padding: 16px;
}

.ui-style-7 .video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ui-style-7 .video-meta {
  font-size: 14px;
  color: #90caf9;
  margin-bottom: 8px;
}

.ui-style-7 .video-one-line {
  font-size: 14px;
  color: #b0bec5;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Footer */
.ui-style-7 .site-footer {
  background: #132f4c;
  padding: 32px 16px;
  text-align: center;
  margin-top: 64px;
  border-top: 1px solid #1e4976;
  color: #90caf9;
}

/* Back to Top Button */
.ui-style-7 .back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: #ffc107;
  color: #0a1929;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}

.ui-style-7 .back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.ui-style-7 .back-to-top:hover {
  background: #ffb300;
  transform: translateY(-4px);
}

/* List Pages - Page Grid (L1) */
.page--grid .page-header {
  background: #132f4c;
  padding: 48px 16px;
  text-align: center;
  margin-bottom: 32px;
}

.page--grid .page-title {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 16px;
}

.page--grid .page-description {
  font-size: 16px;
  color: #b0bec5;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.page--grid .filter-bar {
  margin-bottom: 32px;
  padding: 16px;
  background: #132f4c;
  border-radius: 8px;
}

.page--grid .video-grid {
  margin-bottom: 48px;
}

/* List Pages - Top List (L3) */
.page--top .top-list__items {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.page--top .top-item {
  background: #132f4c;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.page--top .top-item:hover {
  background: #1e4976;
  transform: translateX(4px);
}

.page--top .rank-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #0a1929;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.page--top .rank-badge.top-3 {
  background: linear-gradient(135deg, #ffd700, #ffb300);
}

.page--top .top-item-cover {
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.page--top .top-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page--top .top-item-info {
  flex: 1;
  min-width: 0;
}

.page--top .top-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.page--top .top-item-meta {
  font-size: 14px;
  color: #90caf9;
  margin-bottom: 4px;
}

.page--top .top-item-desc {
  font-size: 14px;
  color: #b0bec5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Detail Pages */
.video-player-section {
  background: #000;
  margin-bottom: 32px;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,193,7,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: #ffc107;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #0a1929;
  margin-left: 4px;
}

.detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 24px;
}

.basic-info {
  background: #132f4c;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.basic-info h2 {
  font-size: 24px;
  color: #ffc107;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 8px;
}

.info-label {
  font-weight: 600;
  color: #90caf9;
  min-width: 60px;
}

.info-value {
  color: #e0e0e0;
}

.content-module {
  background: #132f4c;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.module-title {
  font-size: 24px;
  color: #ffc107;
  margin-bottom: 16px;
  border-left: 4px solid #ffc107;
  padding-left: 12px;
}

.module-content {
  color: #b0bec5;
  line-height: 1.8;
  font-size: 16px;
}

.module-content p {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 12px;
  background: #1e4976;
  border-radius: 16px;
  font-size: 14px;
  color: #90caf9;
}

.related-section {
  margin-top: 48px;
}

.video-card--related {
  background: #132f4c;
}

/* Responsive */
@media (max-width: 768px) {
  .ui-style-7 .header-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .ui-style-7 .main-nav {
    justify-content: center;
    font-size: 14px;
  }

  .ui-style-7 .main-nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .ui-style-7 .hero-title {
    font-size: 24px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .ui-style-7 .video-cover {
    padding-top: 45%;
  }

  .page--top .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page--top .top-item-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .page--top .top-item-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .detail-title {
    font-size: 28px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}