/* UI Style 14 - Layout D - Skeleton S3 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
.ui-style-14 { --primary: #004080; --accent: #0099FF; --bg: #fff; }
.site-header { background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; max-width: 1400px; margin: 0 auto; }
.nav-brand a { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { color: #555; text-decoration: none; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
.hero-section { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; padding: 4rem 2rem; text-align: center; }
.hero-title { font-size: 2rem; margin-bottom: 1rem; font-weight: 600; }
.hero-desc { font-size: 1.1rem; opacity: 0.95; max-width: 800px; margin: 0 auto; }
.intro-section { background: white; padding: 2rem; }
.intro-section p { line-height: 1.8; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.video-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.video-card__link { text-decoration: none; color: inherit; display: block; }
.video-cover { position: relative; padding-top: 56.25%; background: #e0e0e0; overflow: hidden; }
.video-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 1rem; }
.video-title { font-size: 1.1rem; margin-bottom: 0.5rem; color: #222; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-one-line { font-size: 0.9rem; color: #666; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.page { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--primary); }
.page--with-sidebar { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; }
.layout__side--filters { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.top-list__items { list-style: none; }
.top-list__item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: white; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.top-rank { font-size: 2rem; font-weight: bold; color: var(--accent); min-width: 50px; text-align: center; }
.top-list__item .video-cover { flex-shrink: 0; width: 120px; height: 80px; border-radius: 4px; overflow: hidden; padding: 0; }
.top-list__item .video-cover img { width: 100%; height: 100%; object-fit: cover; position: static; }
.top-list__item .video-info { flex: 1; }
.video-meta { font-size: 0.85rem; color: #888; margin-top: 0.5rem; }
.page--grouped .group { margin-bottom: 3rem; }
.group__title { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.detail-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.video-player-section { margin-bottom: 2rem; }
.video-player-inner { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.player-play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 80px; height: 80px; cursor: pointer; transition: all 0.3s; }
.player-play-btn:hover { background: white; transform: translate(-50%, -50%) scale(1.1); }
.player-play-icon { font-size: 2rem; }
.detail-header h1 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--primary); }
.detail-info, .detail-module, .related-section { background: white; padding: 2rem; margin-bottom: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.detail-info h2, .detail-module h2, .related-section h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.info-list { list-style: none; }
.info-list li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.info-list li:last-child { border-bottom: none; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { display: inline-block; padding: 0.3rem 0.8rem; background: #e8f4ff; color: var(--primary); border-radius: 20px; font-size: 0.9rem; }
.site-footer { background: #333; color: white; text-align: center; padding: 2rem; margin-top: 4rem; }
#back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--primary); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: all 0.3s; }
#back-to-top:hover { background: var(--accent); transform: scale(1.1); }
@media (max-width: 768px) {
  .site-nav { flex-direction: column; padding: 1rem; }
  .nav-links { gap: 0.8rem; flex-wrap: nowrap; overflow-x: auto; width: 100%; justify-content: flex-start; padding: 0.5rem 0; }
  .nav-links li { flex-shrink: 0; }
  .hero-title { font-size: 1.5rem; }
  .hero-desc { font-size: 1rem; }
  .video-grid { grid-template-columns: 1fr; gap: 1rem; }
  .page--with-sidebar { grid-template-columns: 1fr; }
  .top-list__item { flex-direction: column; align-items: flex-start; }
  .top-list__item .video-cover { width: 100%; height: auto; padding-top: 56.25%; position: relative; }
  .top-list__item .video-cover img { position: absolute; top: 0; left: 0; }
  .video-cover { padding-top: 45%; }
}