body.ui-style-2 {
  --primary-color: #1a73e8;
  --secondary-color: #ff6b6b;
  --accent-color: #4caf50;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.video-card h3 a {
  color: inherit;
  text-decoration: none;
}

.video-card h3 a:hover {
  text-decoration: underline;
}

.video-card .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.video-card .oneline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10px;
}

.video-card .tags {
  font-size: 12px;
  color: var(--text-light);
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-color);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .video-card {
    padding: 15px;
  }

  .video-card h3 {
    font-size: 16px;
  }

  main.container {
    padding: 0 15px;
  }

  section {
    padding: 20px 15px !important;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px !important;
  }

  nav a {
    font-size: 12px !important;
    padding: 5px 3px !important;
  }

  .video-card h3 {
    font-size: 15px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99;
  font-size: 24px;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--secondary-color);
}
