/* ==================== */
/* RESULT ITEMS */
/* ==================== */

/* Skeleton Loader */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

/* Web result skeleton */
.skeleton-loader.web {
  max-width: 670px;
}

/* News result skeleton */
.skeleton-loader.news {
  max-width: 910px;
}

.skeleton-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: none;
}

.skeleton-url {
  height: 14px;
  width: 60%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 24px;
  width: 80%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-description {
  height: 16px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-description-2 {
  height: 16px;
  width: 90%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

/* Image grid skeleton */
.skeleton-loader.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 16px;
}

.skeleton-loader.images .skeleton-image-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.skeleton-image {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-loader.news .skeleton-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px;
}

.skeleton-loader.news .skeleton-news-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.skeleton-news-thumbnail {
  width: 170px;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-news-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.skeleton-news-source {
  height: 13px;
  width: 80px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-news-dot {
  height: 13px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-news-time {
  height: 13px;
  width: 60px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

/* Video skeleton */
.skeleton-loader.videos .skeleton-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex-direction: row;
}

/* Responsive skeleton loaders */
@media (max-width: 768px) {
  .skeleton-loader.web,
  .skeleton-loader.videos {
    max-width: 100%;
  }

  .skeleton-loader.news {
    max-width: 100%;
  }

  .skeleton-loader.news .skeleton-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skeleton-news-thumbnail {
    width: 100%;
    height: 100px;
    order: -1;
  }

  .skeleton-loader.videos .skeleton-item {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .skeleton-loader.images {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .skeleton-image {
    border-radius: 8px;
  }
}

@keyframes skeleton-glow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-loader.videos .skeleton-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex-direction: row;
}

.skeleton-loader.videos .skeletion-video-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.skeleton-loader.videos .skeleton-thumbnail {
  width: 366px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-loader.videos .skeleton-description-2 {
  width: 70%;
}

.skeleton-loader.videos .skeleton-description {
  width: 90%;
}

body.dark .skeleton-image {
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-glow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.result-item {
  position: relative;
  border-radius: 12px;
  padding: 16px;
  width: 100%;      /* fill available space */
  /* max-width: 720px; /* but never exceed 720px */
  height: auto;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.result-item:hover {
  background-color: #00000008;
}

body.dark .result-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.favicon-container{
    background: #e4e4e4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 24%;
    margin-right: 4px;
}

body.dark .favicon-container {
    background: rgba(255, 255, 255, 0.1);
}

.url-container{
  display: flex;
  flex-direction: column;
  margin-left: 5px;
}

.url-container .site-name{
  font-weight: 500;
}

.url-container .site-url{
  font-weight: 400;
  font-size: calc(11px + var(--app-font-offset));
}

.url-section{
  width:100%;
  display:flex; 
  flex-direction:row; 
  justify-content: space-between;
}

.result-url {
  color: var(--text-secondary);
  font-size: calc(14px + var(--app-font-offset));
  line-height: 1.3;
  padding-top: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.result-url .separator {
  margin: 0 4px;
  color: var(--text-tertiary);
}

.url-favicon {
  width: 20px;
  height: 20px;
}

.result-title {
  color: var(--primary-color);
  font-size: calc(20px + var(--app-font-offset));
  font-weight: 400;
  margin: 0;
  text-decoration: none;
  display: block;
  line-height: 1.4;
  margin-bottom: 10px;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-title:hover {
  text-decoration: underline;
}

.result-title:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
  text-decoration: underline;
}

.result-description {
  color: var(--text-secondary);
  font-size: calc(13px + var(--app-font-offset));
  line-height: 1.6;
  display: -webkit-box;
  max-width: 700px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subpages-grid {
  margin-top: 12px;
  display: grid;
  gap: 8px 16px; /* Less vertical gap, more horizontal gap */
  max-width: 100%;
}

.subpage-item {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px;
  transition: all 0.2s ease;
}

.subpage-item:hover {
  background: var(--bg-secondary);
}

.subpage-title {
  color: var(--primary-color);
  font-size: calc(14px + var(--app-font-offset));
  font-weight: 400;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subpage-title:hover {
  text-decoration: underline;
}

.subpage-description {
  color: var(--text-secondary);
  font-size: calc(12px + var(--app-font-offset));
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-info{
  color: var(--text-tertiary);
  font-size: calc(16px + var(--app-font-offset));
  cursor: pointer;
}

.result-info:empty {
  display: none;
  pointer-events: none;
  cursor: default;
}

/* ==================== */
/* HOVER BOX */
/* ==================== */

.hover-box {
  position: fixed;
  background: var(--bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 0;
  z-index: 10000;
  border-radius: 12px;
  max-width: 420px;
  font-size: calc(14px + var(--app-font-offset));
  color: var(--text-color);
  width: auto;
  transition: none;
  max-height: min(85vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hover-box.hidden {
  display: none !important;
  opacity: 1;
  max-height: none !important;
  padding: 0;
  margin: 0;
  pointer-events: none;
  visibility: hidden;
}

.hover-box-scroll {
  overflow-y: auto;
  padding: 20px 22px 22px;
  flex: 1;
  min-height: 0;
}

.hover-box.hover-box--above {
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.hover-box.hover-box--sheet {
  border-radius: 12px;
}

/* Narrow viewports: keep JS-driven placement; only widen the panel */
@media (max-width: 941px) {
  .hover-box.hover-box--sheet {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }
}

body.dark .hover-box {
  background: var(--bg);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--text-color);
}

.hoverbox-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
}

.hoverbox-col-1,
.hoverbox-col-2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hoverbox-col-1 > div,
.hoverbox-col-2 > div {
  font-size: calc(13px + var(--app-font-offset));
}

.hoverbox-col-2 .row-1 {
  /* Authority score container */
  min-height: 20px; /* ensures alignment even if empty */
  margin-right: 5px;
}

.hoverbox-col-2{
  width: 25%;
  text-align: right;
}
.result-info i{
  margin: 2px;
}

.result-info .result-ranking-trigger{
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}

.result-info .result-ranking-trigger:hover {
  color: var(--primary-color);
}

.result-info:not(:empty) {
  min-width: 1.5rem;
  min-height: 1.25rem;
}

.hoverbox-info{
  margin: 0 0 6px;
  color: var(--text-secondary);
}

.hover-box button:hover {
  background: var(--primary-color);
  color: white;
}

body.dark .hover-box button:hover {
  background: var(--primary-color);
  color: white;
}

.hoverbox-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.hoverbox-favicon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg-secondary);
}

.hoverbox-title {
  font-size: calc(17px + var(--app-font-offset));
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-color);
  line-height: 1.35;
}

.hoverbox-url{
  font-size: calc(13px + var(--app-font-offset));
  margin: 0 0 10px 0;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.hoverbox-description {
  font-size: calc(13px + var(--app-font-offset));
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-adjustment {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border-color);
}

.ranking-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  padding: 8px;
  height: 40px;
}

.ranking-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.ranking-center {
  font-size: calc(12px + var(--app-font-offset));
  color: var(--text-tertiary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hoverbox-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: calc(14px + var(--app-font-offset));
}

.hoverbox-table td {
  padding: 6px 0;
  color: var(--text-color);
}

/* Hide default table styles */
.hoverbox-table,
.hoverbox-table th,
.hoverbox-table td {
  border: none;
  outline: none;
}

/* Active state for ranking buttons */
.ranking-btn.active {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.ranking-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: calc(14px + var(--app-font-offset));
  margin: 10px;
}

.normal-btn {
  min-width: 70px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: calc(12px + var(--app-font-offset));
  width: auto;
  border-radius: 6px;
  padding: 0 8px;
}

.personalization-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: calc(14px + var(--app-font-offset));
  color: var(--text-color);
}

.toggle-btn {
  background: transparent;
  color: var(--primary-color);
  text-decoration: underline;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
  transition: opacity 0.2s;
}

.toggle-btn:hover {
  opacity: 0.9;
}

.ranking-strength {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.ranking-pin-page {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.ranking-pin-page-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: calc(12px + var(--app-font-offset));
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ranking-pin-page-input {
  width: 64px;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: calc(13px + var(--app-font-offset));
  text-align: center;
}

.ranking-pin-page-hint {
  font-size: calc(11px + var(--app-font-offset));
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}

.ranking-pin-page--disabled .ranking-pin-page-input,
.ranking-pin-page--disabled .ranking-pin-page-label {
  opacity: 0.45;
}

.ranking-pin-page--disabled .ranking-pin-page-hint {
  opacity: 0.6;
}

.ranking-strength-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(12px + var(--app-font-offset));
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ranking-strength-value {
  font-weight: 600;
  color: var(--primary-color);
}

.ranking-strength-slider {
  width: 100%;
  accent-color: var(--primary-color);
}

.ranking-strength-hint,
.ranking-disabled-note {
  margin: 6px 0 0;
  font-size: calc(11px + var(--app-font-offset));
  color: var(--text-secondary);
  line-height: 1.35;
}

.ranking-strength--disabled .ranking-strength-slider {
  opacity: 0.4;
  cursor: not-allowed;
}

.ranking-strength--disabled .ranking-strength-label,
.ranking-strength--disabled .ranking-strength-hint {
  opacity: 0.55;
}

.ranking-apply-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: calc(14px + var(--app-font-offset));
  font-weight: 500;
  cursor: pointer;
}

.ranking-apply-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ranking-apply-btn:not(:disabled):hover {
  filter: brightness(1.05);
}

.ranking-adjustment--disabled .ranking-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ranking-btn.ranking-btn--provider-disabled:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ranking-adjustment--disabled .ranking-btn.active:disabled {
  opacity: 1;
  background: var(--primary-color);
  color: white;
}

.ranking-scope {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.ranking-scope--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ranking-scope-label {
  display: block;
  font-size: calc(12px + var(--app-font-offset));
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ranking-scope-options {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.ranking-scope-option {
  flex: 1;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.ranking-scope-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.ranking-scope-option-label {
  display: block;
  padding: 8px 10px;
  text-align: center;
  font-size: calc(12px + var(--app-font-offset));
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-color);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.ranking-scope-option + .ranking-scope-option {
  border-left: 1px solid var(--border-color);
}

.ranking-scope-option.is-selected .ranking-scope-option-label {
  background: var(--primary-color);
  color: #fff;
}

.ranking-scope-option:not(.is-selected) .ranking-scope-option-label {
  background: transparent;
  color: var(--text-color);
}

.ranking-scope-option input[type="radio"]:focus-visible + .ranking-scope-option-label {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.ranking-scope-option:hover:not(.is-selected) .ranking-scope-option-label {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-secondary));
}

.ranking-scope-hint {
  margin: 8px 0 0;
  font-size: calc(11px + var(--app-font-offset));
  color: var(--text-secondary);
  line-height: 1.35;
}

body.dark .ranking-scope-option:hover:not(.is-selected) .ranking-scope-option-label {
  background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-secondary));
}

/* ==================== */
/* VIDEO RESULTS */
/* ==================== */
.result-video {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
}

.video-thumbnail-container {
  position: relative;
  height: 150px;
  border-radius: 8px;
}

.video-thumbnail {
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--video-play-bg);
  border-radius: 50%;
  color: var(--text-color) ;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(24px + var(--app-font-offset));
  opacity: 0.9;
}

.video-link:hover .video-play-button {
  opacity: 1;
  background: var(--video-play-hover);
}

.video-info {
  flex: 1;
}

.video-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: calc(13px + var(--app-font-offset));
}

.video-duration {
  background: var(--primary-color);
  color: var(--text-color) ;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: calc(12px + var(--app-font-offset));
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.platform-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 8px;
  border-radius: 16px;
  font-size: calc(12px + var(--app-font-offset));
  font-weight: 500;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.platform-badge.youtube {
  background-color: var(--youtube-red);
  color: var(--text-color) ;
}

.platform-badge.vimeo {
  background-color: var(--vimeo-blue);
  color: var(--text-color) ;
}

.platform-badge.dailymotion {
  background-color: var(--dailymotion-blue);
  color: var(--text-color) ;
}

.video-platform {
  color: var(--google-blue);
  font-weight: 400;
}

/* ==================== */
/* NEWS RESULTS */
/* ==================== */
.result-news {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 12px;
  border-radius: 12px;
  gap:20px;
}

.news-info {
  min-width: 0;
  /* max-width: 560px; */
}

.news-thumbnail {
  width: 170px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.news-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: calc(13px + var(--app-font-offset));
}

.news-source {
  color: var(--text-tertiary);
  font-weight: 400;
}

.news-time {
  color: var(--text-tertiary);
}

.news-dot-separator {
  color: var(--text-tertiary);
}

.news-info .url-section .result-title{
  text-wrap: wrap;
  text-overflow:clip;
}

/* ==================== */
/* IMAGE RESULTS */
/* ==================== */
.image-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.image-grid-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.image-result-item {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--entity-border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.image-result-item.loaded {
  opacity: 1;
}

.image-link {
  display: block;
  text-decoration: none;
}

.image-thumb-wrap {
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-info {
  padding: 7px 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.image-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.image-favicon {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

.image-url-text {
  font-size: calc(11px + var(--app-font-offset));
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-title-text {
  font-size: calc(12px + var(--app-font-offset));
  font-weight: 400;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.news-info .result-title {
  max-width: 1000px;
}

.results-no-margin {
  margin: 0;
}
