/* Results Container - Naver/Yandex inspired clean layout */
.results-container {
  animation: fadeIn 0.4s ease-out;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* ===== Regular Results - Clean card design ===== */
.result-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 4px;
}

.result {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  position: relative;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Staggered animation delays */
.result-link:nth-child(1) { animation-delay: 0.03s; }
.result-link:nth-child(2) { animation-delay: 0.06s; }
.result-link:nth-child(3) { animation-delay: 0.09s; }
.result-link:nth-child(4) { animation-delay: 0.12s; }
.result-link:nth-child(5) { animation-delay: 0.15s; }
.result-link:nth-child(6) { animation-delay: 0.18s; }
.result-link:nth-child(7) { animation-delay: 0.21s; }
.result-link:nth-child(8) { animation-delay: 0.24s; }

/* Subtle left accent - cleaner than flag stripe */
.result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--green-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.rtl .result::before {
  left: auto;
  right: 0;
}

.result-link:hover .result::before {
  opacity: 1;
}

/* Hover effect - subtle lift like Naver */
.result-link:hover .result {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* Result header */
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Type badge - minimal pill design */
.type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.type::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

/* Result title - optimized for Arabic readability */
.result h3 {
  margin: 0;
  color: #1557b0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Tajawal', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.result-link:hover h3 {
  color: #0d47a1;
  text-decoration: underline;
}

/* Result description - optimized for Arabic readability */
.result p {
  margin: 10px 0 14px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.75;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Noto Sans Arabic', 'Tajawal', -apple-system, sans-serif;
  max-width: 100%;
  font-weight: 400;
}

/* URL display - cleaner, more subtle */
.result small {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, monospace;
}

.result small::before {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===== YouTube Results - Cleaner card design ===== */
.youtube-result {
  background: var(--white);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.youtube-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

.youtube-preview {
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* Thumbnail container */
.youtube-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.youtube-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.youtube-result:hover .youtube-thumbnail img {
  transform: scale(1.05);
}

/* Play button */
.youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(200, 16, 46, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
  backdrop-filter: blur(4px);
}

.youtube-play-button:hover {
  background: var(--red-primary);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.5);
}

.youtube-play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.rtl .youtube-play-button svg {
  margin-left: 0;
  margin-right: 4px;
  transform: scaleX(-1);
}

/* Duration badge */
.youtube-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

body.rtl .youtube-duration {
  right: auto;
  left: 12px;
}

.youtube-duration::before {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* YouTube info section - cleaner typography */
.youtube-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.youtube-title {
  text-decoration: none;
  color: inherit;
  display: block;
}

.youtube-title h3 {
  margin: 0 0 10px 0;
  color: #1a73e8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  transition: color 0.15s ease;
}

.youtube-title:hover h3 {
  color: var(--red-primary);
  text-decoration: underline;
}

.youtube-description {
  margin: 0 0 12px 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.65;
  max-height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Noto Naskh Arabic', -apple-system, serif;
}

/* YouTube meta info */
.youtube-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.youtube-channel {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.25);
}

.youtube-views,
.youtube-date {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.youtube-views::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADB5BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.youtube-date::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADB5BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.youtube-result .arabic-url {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-400);
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.youtube-result .arabic-url::before {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADB5BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* ===== Loading & Empty States ===== */
.loading,
.no-results {
  text-align: center;
  padding: 80px 24px;
  font-size: 16px;
  color: var(--gray-500);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading::before {
  content: '';
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-100);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results::before {
  content: '';
  width: 64px;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADB5BD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0.5;
}

/* ===== Videos Section ===== */
.videos-section {
  margin-bottom: 40px;
  animation: fadeIn 0.5s ease-out;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.section-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.section-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
}

.section-count {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Video Card - cleaner design */
.video-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

/* Video Thumbnail */
.video-thumbnail-link {
  display: block;
  text-decoration: none;
  position: relative;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

/* Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.video-play-button {
  width: 56px;
  height: 56px;
  background: var(--red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.4);
}

.video-card:hover .video-play-button {
  transform: scale(1);
}

.video-play-button:hover {
  background: var(--red-dark);
  transform: scale(1.1) !important;
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.5);
}

.video-play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

body.rtl .video-play-button svg {
  margin-left: 0;
  margin-right: 4px;
}

/* Video Info */
.video-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 8px;
}

.video-title h3 {
  font-family: 'Noto Kufi Arabic', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.video-title:hover h3 {
  color: var(--red-primary);
  text-decoration: underline;
}

.video-description {
  font-family: 'Noto Naskh Arabic', -apple-system, serif;
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.video-info .arabic-url {
  font-size: 12px;
  color: var(--gray-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-info .arabic-url::before {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ADB5BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* Web Results Section */
.web-results-section {
  animation: fadeIn 0.5s ease-out 0.1s backwards;
}

/* ===== Keffiyeh Pattern Accent ===== */
.results-container::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--green-primary) 0%,
    var(--green-primary) 25%,
    var(--white) 25%,
    var(--white) 50%,
    var(--red-primary) 50%,
    var(--red-primary) 75%,
    var(--gray-900) 75%,
    var(--gray-900) 100%
  );
  opacity: 0.1;
  pointer-events: none;
}

/* ===== Responsive Design ===== */
/* ===== Responsive Design for Videos Section ===== */
@media (max-width: 1200px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .section-header {
    padding: 14px 18px;
  }
  
  .section-icon {
    width: 40px;
    height: 40px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .section-count {
    font-size: 13px;
    padding: 5px 12px;
  }
  
  .youtube-thumbnail {
    width: 280px;
    min-height: 158px;
  }
  
  .result h3 {
    font-size: 19px;
  }
  
  .youtube-title h3 {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .section-header {
    padding: 12px 16px;
    margin-bottom: 20px;
  }
  
  .section-icon {
    width: 36px;
    height: 36px;
  }
  
  .section-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .section-title {
    font-size: 16px;
  }
  
  .section-count {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .video-info {
    padding: 14px;
  }
  
  .video-title h3 {
    font-size: 14px;
  }
  
  .video-description {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .result-link {
    margin-bottom: 12px;
    padding: 0 2px;
  }
  
  .result {
    padding: 16px 18px;
    border-radius: 6px;
  }
  
  .result h3 {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .result p {
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0 10px 0;
  }
  
  .result small {
    font-size: 11px;
  }
  
  .youtube-thumbnail {
    width: 240px;
    min-height: 135px;
  }
  
  .youtube-info {
    padding: 20px;
  }
  
  .youtube-title h3 {
    font-size: 16px;
  }
  
  .youtube-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
    max-height: 3.4em;
  }
  
  .youtube-play-button {
    width: 56px;
    height: 56px;
  }
  
  .youtube-play-button svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .section-header {
    padding: 10px 14px;
    margin-bottom: 16px;
  }
  
  .section-icon {
    width: 32px;
    height: 32px;
  }
  
  .section-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .section-count {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .video-info {
    padding: 12px;
  }
  
  .video-title h3 {
    font-size: 13px;
  }
  
  .video-description {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  
  .video-play-button {
    width: 48px;
    height: 48px;
  }
  
  .video-play-button svg {
    width: 20px;
    height: 20px;
  }
  
  .result {
    padding: 18px 20px;
  }
  
  .result h3 {
    font-size: 17px;
  }
  
  .result p {
    font-size: 14px;
    margin: 10px 0 14px 0;
  }
  
  .result small {
    font-size: 12px;
  }
  
  .type {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  /* Stack YouTube layout */
  .youtube-preview {
    flex-direction: column;
  }
  
  .youtube-thumbnail {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16/9;
  }
  
  .youtube-info {
    padding: 18px;
  }
  
  .youtube-title h3 {
    font-size: 16px;
  }
  
  .youtube-description {
    font-size: 13px;
  }
  
  .youtube-meta {
    gap: 12px;
    padding-top: 14px;
  }
  
  .youtube-channel {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .youtube-views,
  .youtube-date {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-header {
    padding: 10px 14px;
  }
  
  .section-icon {
    width: 32px;
    height: 32px;
  }
  
  .section-title {
    font-size: 15px;
  }
  
  .video-info {
    padding: 14px;
  }
  
  .video-title h3 {
    font-size: 14px;
  }
  
  .result-link {
    margin-bottom: 10px;
    padding: 0;
  }
  
  .result {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
  }
  
  .result h3 {
    font-size: 15px;
    line-height: 1.4;
  }
  
  .result p {
    font-size: 13px;
    line-height: 1.6;
    margin: 6px 0 10px 0;
  }
  
  .result small {
    font-size: 11px;
  }
  
  .result small::before {
    width: 12px;
    height: 12px;
  }
  
  .type {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .youtube-result {
    margin-bottom: 16px;
  }
  
  .youtube-info {
    padding: 16px;
  }
  
  .youtube-title h3 {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .youtube-description {
    font-size: 12px;
    -webkit-line-clamp: 2;
    max-height: 3em;
    margin-bottom: 12px;
  }
  
  .youtube-meta {
    gap: 10px;
    padding-top: 12px;
  }
  
  .youtube-channel {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .youtube-views,
  .youtube-date {
    font-size: 11px;
  }
  
  .youtube-play-button {
    width: 48px;
    height: 48px;
  }
  
  .youtube-play-button svg {
    width: 18px;
    height: 18px;
  }
  
  .loading,
  .no-results {
    padding: 60px 20px;
    font-size: 14px;
  }
  
  .loading::before {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }
}

@media (max-width: 360px) {
  .result-link {
    margin-bottom: 8px;
  }
  
  .result {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .result h3 {
    font-size: 14px;
    line-height: 1.35;
  }
  
  .result p {
    font-size: 12px;
    line-height: 1.55;
    margin: 5px 0 8px 0;
  }
  
  .result small {
    font-size: 10px;
  }
  
  .youtube-info {
    padding: 14px;
  }
  
  .youtube-title h3 {
    font-size: 14px;
  }
  
  .youtube-description {
    font-size: 11px;
  }
  
  .youtube-channel {
    font-size: 9px;
    padding: 3px 8px;
  }
}
