/* Hide sidebar and expand main column when Maps tab is active */
body.maps-tab-active .results-sidebar {
  display: none !important;
}

body.maps-tab-active .results-layout {
  grid-template-columns: 1fr !important;
  display: block !important;
}

body.maps-tab-active .results-main {
  width: 100% !important;
  max-width: 100% !important;
}

/* Map container */
#maps-plugin-container {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
}

#maps-plugin-map {
  width: 100%;
  height: 420px;
}

/* Leaflet popup theming */
#maps-plugin-map .leaflet-popup-content-wrapper {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 6px;
}

#maps-plugin-map .leaflet-popup-content a {
  color: var(--text-link);
}

#maps-plugin-map .leaflet-popup-tip {
  background: var(--bg-light);
}

#maps-plugin-map .leaflet-control-attribution {
  background: var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.7rem;
}

#maps-plugin-map .leaflet-control-attribution a {
  color: var(--text-link);
}

.maps-no-results {
  padding: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 600px) {
  #maps-plugin-map {
    height: 260px !important;
  }
}

@keyframes pokemon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    75% {
        transform: translateY(8px);
    }
}

.pokemon-content {
    display: flex;
}

.pokemon-sprite-box {
    display: flex;
    align-items: center;
}

.pokemon-sprite {
    flex: 0 0 100px;
    margin-right: 15px;
}

.pokemon-sprite img {
    width: 100%;
    height: auto;
    animation: none;
}

.pokemon-sprite img:hover {
    animation: pokemon-float 4s ease-in-out infinite;
}

.about-pokemon {
    flex: 1;
    padding-left: 32px;
}

.pokemon-header {
    font-size: 2em;
    font-weight: bold;
}

.pokemon-pokedex,
.pokemon-name {
    display: inline-block;
}

.pokemon-species-data {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    font-size: 1em;
}

.pokemon-species-data-information {
    flex: 2;
    margin: 10px 10px 10px 0px;
}

.pokemon-types {
    display: flex;
    flex-wrap: wrap;
}

.pokemon-type {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.type-normal {
    background: #9B9B9B;
    color: white;
}

.type-fire {
    background: #FF7F50;
    color: white;
}

.type-water {
    background: #5A9BD5;
    color: white;
}

.type-electric {
    background: #FFD700;
    color: #222;
}

.type-grass {
    background: #5BAF43;
    color: white;
}

.type-ice {
    background: #95D8FF;
    color: white;
}

.type-fighting {
    background: #D55D5D;
    color: white;
}

.type-poison {
    background: #D56EBE;
    color: white;
}

.type-ground {
    background: #B07744;
    color: white;
}

.type-flying {
    background: #99D2FF;
    color: white;
}

.type-psychic {
    background: #E55D87;
    color: white;
}

.type-bug {
    background: #A4E822;
    color: #222;
}

.type-rock {
    background: #D08A65;
    color: white;
}

.type-ghost {
    background: #7F87D5;
    color: white;
}

.type-dragon {
    background: #5F94D9;
    color: white;
}

.type-dark {
    background: #5A5A5A;
    color: white;
}

.type-steel {
    background: #B7B9D2;
    color: #222;
}

.type-fairy {
    background: #EE99AC;
    color: #222;
}

.pokemon-legendary {
    background: #F4D06F;
    color: #222;
}

.pokemon-mythical {
    background: #2D728F;
    color: white;
}

.pokemon-biometrics {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

#pokemon-height,
#pokemon-weight {
    flex: 1;
}

.pokemon-bulbapedia-link {
    font-size: 0.8em;
}

.pokemon-flavour-entry {
    flex: 1;
    margin: 10px;
}

.password-result .password-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.password-result .password-value {
  font-size: 1.1rem;
  word-break: break-all;
  margin: 0.5rem 0;
}

.password-result .password-value code {
  background: var(--bg-hover);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.password-result .password-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.rss-result-date {
  font-size: 12px;
  color: var(--text-secondary);
}
.rss-result-date::before {
  content: "\00b7";
  margin: 0 6px;
}

.main.has-feed {
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 24px;
}

.home-news-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 584px;
  margin: 24px auto 0;
  gap: 16px;
}
.home-news-feed:empty {
  display: none;
}

.skeleton-feed {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}
.skeleton-feed-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-feed-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-hover) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: rss-skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-feed-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-feed-line {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-hover) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: rss-skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 4px;
  height: 12px;
}
.skeleton-feed-line.skeleton-feed-source {
  width: 100px;
}
.skeleton-feed-line.skeleton-feed-title {
  height: 16px;
  width: 85%;
}

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

@keyframes home-feed-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-feed-card {
  display: block;
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  animation: home-feed-fade-in 0.4s ease-out backwards;
}
.home-feed-card:nth-child(1) { animation-delay: 0.02s; }
.home-feed-card:nth-child(2) { animation-delay: 0.06s; }
.home-feed-card:nth-child(3) { animation-delay: 0.1s; }
.home-feed-card:nth-child(4) { animation-delay: 0.14s; }
.home-feed-card:nth-child(5) { animation-delay: 0.18s; }
.home-feed-card:nth-child(6) { animation-delay: 0.22s; }
.home-feed-card:nth-child(7) { animation-delay: 0.26s; }
.home-feed-card:nth-child(8) { animation-delay: 0.3s; }
.home-feed-card:nth-child(n+9) { animation-delay: 0.34s; }

.home-feed-card:active {
  background: var(--bg-hover);
}

.home-feed-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-hover);
}

.home-feed-card-favicon-wrap {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-hover);
  align-items: center;
  justify-content: center;
}
.home-feed-card-favicon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.home-feed-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-feed-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-feed-card-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feed-card-date {
  flex-shrink: 0;
}
.home-feed-card-date::before {
  content: "\00b7";
  margin-right: 6px;
}

.home-feed-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .home-news-feed:not(.home-news-feed--desktop) {
    display: none !important;
  }

  .home-news-feed--desktop {
    flex-direction: row;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 0 24px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-news-feed--desktop::-webkit-scrollbar {
    display: none;
  }

  .home-news-feed--desktop .home-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  .home-news-feed--desktop .home-feed-card-img {
    aspect-ratio: 16 / 9;
  }

  .home-news-feed--desktop .home-feed-sentinel {
    flex: 0 0 1px;
    min-width: 1px;
  }

  .home-news-feed--desktop .skeleton-feed {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }
  .home-news-feed--desktop .skeleton-feed-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
}



.imdb-result {
  padding: 0;
  max-width: 652px;
  color: var(--text-primary);
}

.imdb-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
}

.imdb-poster {
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
}

.imdb-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imdb-hero-text {
  flex: 1;
  min-width: 0;
}

.imdb-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.imdb-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.imdb-hero-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.imdb-hero-meta .imdb-rated + .imdb-released::before {
  content: " · ";
  color: var(--text-secondary);
}

.imdb-ratings {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.imdb-plot {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.imdb-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.imdb-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8125rem;
}

.imdb-grid-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.imdb-grid-value {
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imdb-cast-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
}

.imdb-cast-strip {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding: 0 0.25rem 0 0;
}

.imdb-cast-scroll {
  scrollbar-width: none;
}

.imdb-cast-scroll::-webkit-scrollbar {
  display: none;
}

.imdb-cast-card {
  flex: 0 0 auto;
  width: 5.5rem;
  padding: 0;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imdb-cast-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--border-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imdb-cast-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imdb-cast-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-light);
}

.imdb-cast-card .imdb-cast-name {
  padding: 0.4rem 0.35rem 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.imdb-cast-character {
  padding: 0 0.35rem 0.4rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.imdb-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.imdb-link:hover {
  text-decoration: underline;
}

.imdb-hero--compact {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.imdb-hero--compact .imdb-poster {
  width: 80px;
  height: 120px;
}

.imdb-filmography-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.imdb-section-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.imdb-filmography-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  margin: 0 0 1rem;
}


.imdb-filmography-scroll::-webkit-scrollbar {
  display: none;
}

.imdb-filmography-strip {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0 0.25rem 0 0;
}

.imdb-filmography-scroll::-webkit-scrollbar {
  height: 6px;
}

.imdb-filmography-scroll::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  opacity: 0.3;
  border-radius: 3px;
}

.imdb-movie-card {
  flex: 0 0 auto;
  width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.imdb-movie-card:hover {
  transform: scale(1.02);
}

.imdb-movie-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: 0.35rem;
}

.imdb-movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imdb-movie-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.imdb-movie-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.imdb-movie-year {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

@media (min-width: 480px) {
  .imdb-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .imdb-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tmdb-tabs {
  position: relative;
}

.tmdb-tab-bar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.tmdb-tab-bar::-webkit-scrollbar {
  display: none;
}

.tmdb-tab-btn {
  all: unset;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: -1px;
}

.tmdb-tab-btn:hover {
  color: var(--text-primary);
}

.tmdb-tab-btn--active {
  color: var(--text-primary);
  border-bottom-color: var(--primary, #1a73e8);
}

.tmdb-accordion {
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.tmdb-accordion .tmdb-accordion {
  border-radius: 6px;
  margin: 0.35rem 0;
}

.tmdb-accordion-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.tmdb-accordion-summary::-webkit-details-marker {
  display: none;
}

.tmdb-accordion-summary::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.tmdb-accordion[open] > .tmdb-accordion-summary::before {
  transform: rotate(45deg);
}

.tmdb-accordion-meta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.tmdb-accordion-body {
  padding: 0 0 0.75rem;
  max-height: 20rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.tmdb-season-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tmdb-season-poster {
  flex-shrink: 0;
  width: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.tmdb-season-info {
  flex: 1;
  min-width: 0;
}

.tmdb-season-overview {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tmdb-season-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary, #1a73e8);
  text-decoration: none;
}

.tmdb-season-link:hover {
  text-decoration: underline;
}

.time-result .time-place {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
}

.time-time {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.time-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.gh-slot-result {
  padding: 0;
  max-width: 100%;
  width: 100%;
  color: var(--text-primary);
  min-width: 0;
}

.gh-slot-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-slot-section {
  margin-bottom: 0;
  min-width: 0;
}

.gh-slot-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.gh-slot-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  min-width: 0;
}

.gh-slot-grid::-webkit-scrollbar {
  display: none;
}

.gh-slot-grid::-webkit-scrollbar-track {
  background: var(--bg-hover);
  border-radius: 3px;
}

.gh-slot-grid::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  opacity: 0.4;
  border-radius: 3px;
}

.gh-slot-card {
  display: block;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 280px;
  transition: background 0.15s ease;
}

.results-slot-panel-body a:hover {
  text-decoration: none;
}

.gh-slot-card {
  background: var(--bg-hover);
}

.gh-slot-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gh-slot-avatar--user {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.gh-slot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-slot-avatar-placeholder {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gh-slot-repo-head,
.gh-slot-user-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.gh-slot-repo-meta,
.gh-slot-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gh-slot-repo-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary, #0969da);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-slot-repo-lang {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gh-slot-stars {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.gh-slot-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gh-slot-user-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.gh-slot-user-login {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.gh-slot-user-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.weather-result {
  padding: 1.5em 0;
  max-width: 652px;
  color: var(--text-primary);
}

.weather-result .ti {
  font-size: 1.25em;
  opacity: 0.9;
  color: var(--text-primary);
}

.weather-location {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.weather-hero-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.weather-hero-icon .ti {
  font-size: 2.5rem;
  color: var(--primary, #1a73e8);
}

.weather-hero-text {
  min-width: 0;
}

.weather-temp {
  font-size: 2rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.weather-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  opacity: 0.85;
  color: var(--text-secondary);
}

.weather-feels {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.weather-now-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.weather-now-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.weather-now-icon {
  flex-shrink: 0;
  font-size: 1.1rem !important;
  opacity: 0.7;
  color: var(--text-secondary) !important;
}

.weather-value {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-week-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.weather-week-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.weather-week-wrap {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-light);
  overflow: hidden;
}

.weather-week {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.weather-week th,
.weather-week td {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.weather-week th {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7rem;
}

.weather-week tbody tr:last-child td {
  border-bottom: none;
}

.weather-week-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.weather-week-row:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.04));
}

.weather-week-row:focus {
  outline: 2px solid var(--primary, #1a73e8);
  outline-offset: -2px;
}

.weather-day {
  font-weight: 600;
  color: var(--text-primary);
  width: 3.5rem;
}

.weather-day-icon .ti {
  font-size: 1.35rem !important;
  color: var(--primary, #1a73e8) !important;
}

.weather-day-temps {
  font-weight: 500;
  color: var(--text-primary);
}

.weather-day-precip {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.weather-day-precip .ti {
  font-size: 0.9rem !important;
  opacity: 0.8;
  margin-right: 0.2rem;
}

.weather-hourly-row td {
  padding: 0 !important;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  background: var(--bg-light);
}

.weather-hourly-cell {
  padding: 0.75rem 1rem !important;
  overflow: hidden;
}

.weather-hourly-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
  margin: 0 -0.25rem 0 0;
}

.weather-hourly-strip {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  padding: 0 0.25rem 0 0;
}

.weather-hourly-scroll::-webkit-scrollbar {
  height: 6px;
}

.weather-hourly-scroll::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 3px;
}

.weather-hourly-scroll::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  opacity: 0.3;
  border-radius: 3px;
}

.weather-hour-card {
  flex: 0 0 auto;
  min-width: 4.25rem;
  padding: 0.6rem 0.5rem;
  background: var(--search-bar-bg, #fff);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.weather-hour-time {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.weather-hour-icon {
  font-size: 1.5rem !important;
  color: var(--primary, #1a73e8) !important;
}

.weather-hour-temp {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.weather-hour-precip {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.math-widget {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  max-width: 652px;
  color: var(--text-primary);
}

.math-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.math-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.math-query {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.math-equals {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.math-result {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.ac-item--history {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.ac-item--history .ac-item-icon--clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.ac-item--history .ac-item-icon--clock svg {
  width: 20px;
  height: 20px;
}

.ac-item--history .ac-item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-item--history .ac-item-delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  opacity: 0.8;
}

.ac-item--history .ac-item-delete:hover {
  opacity: 1;
  background: var(--bg-hover);
  color: var(--danger);
}

.ac-item--history .ac-item-delete svg {
  width: 18px;
  height: 18px;
}

.search-history-result .result-favicon--clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-cite);
}

.search-history-result .result-favicon--clock svg {
  width: 22px;
  height: 22px;
}

.search-history-result .history-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
}

.search-history-result .history-delete-btn:hover {
  color: var(--danger);
  background: var(--bg-hover);
}

.search-history-result .history-delete-btn svg {
  width: 18px;
  height: 18px;
}


/* Pokemon css originally from https://github.com/fccview/fccview-degoog-extensions/tree/main/themes/pokemon */
body::after {
    content: "";
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: pokemon-float 4s ease-in-out infinite;
}

@keyframes pokemon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    75% {
        transform: translateY(8px);
    }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: sparkle-animation 1.5s infinite;
}

@keyframes sparkle-animation {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.pokemon-content {
    display: flex;
}

.pokemon-sprite-box {
    display: flex;
    align-items: center;
}

.pokemon-sprite {
    flex: 0 0 100px;
    margin-right: 15px;
}

.pokemon-sprite img {
    width: 100%;
    height: auto;
    animation: none;
}

.pokemon-sprite img:hover {
    animation: pokemon-float 4s ease-in-out infinite;
}

.about-pokemon {
    flex: 1;
    padding-left: 32px;
}

.pokemon-header {
    font-size: 2em;
    font-weight: bold;
}

.pokemon-pokedex,
.pokemon-name {
    display: inline-block;
}

.pokemon-species-data {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    font-size: 1em;
}

.pokemon-species-data-information {
    flex: 2;
    margin: 10px 10px 10px 0px;
}

.pokemon-types {
    display: flex;
    flex-wrap: wrap;
}

.pokemon-type {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.type-normal {
    background: #9B9B9B;
    color: white;
}

.type-fire {
    background: #FF7F50;
    color: white;
}

.type-water {
    background: #5A9BD5;
    color: white;
}

.type-electric {
    background: #FFD700;
    color: #222;
}

.type-grass {
    background: #5BAF43;
    color: white;
}

.type-ice {
    background: #95D8FF;
    color: white;
}

.type-fighting {
    background: #D55D5D;
    color: white;
}

.type-poison {
    background: #D56EBE;
    color: white;
}

.type-ground {
    background: #B07744;
    color: white;
}

.type-flying {
    background: #99D2FF;
    color: white;
}

.type-psychic {
    background: #E55D87;
    color: white;
}

.type-bug {
    background: #A4E822;
    color: #222;
}

.type-rock {
    background: #D08A65;
    color: white;
}

.type-ghost {
    background: #7F87D5;
    color: white;
}

.type-dragon {
    background: #5F94D9;
    color: white;
}

.type-dark {
    background: #5A5A5A;
    color: white;
}

.type-steel {
    background: #B7B9D2;
    color: #222;
}

.type-fairy {
    background: #EE99AC;
    color: #222;
}

.pokemon-legendary {
    background: #F4D06F;
    color: #222;
}

.pokemon-mythical {
    background: #2D728F;
    color: white;
}

.pokemon-biometrics {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

#pokemon-height,
#pokemon-weight {
    flex: 1;
}

.pokemon-bulbapedia-link {
    font-size: 0.8em;
}

.pokemon-flavour-entry {
    flex: 1;
    margin: 10px;
}

.define-result .define-word {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
}

.define-phonetic {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
}

.define-meaning {
  margin-bottom: 1rem;
}

.define-pos {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.define-list {
  margin: 0.25rem 0 0 1rem;
  padding-left: 0.5rem;
}

.define-example {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.qr-result .qr-label {
  word-break: break-all;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.qr-result .qr-image {
  display: block;
  border-radius: 8px;
}

.result-episode-context {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
