.tg-search-page {
  background: #f5f5f3;
  color: #0a0a0a;
  min-height: 100vh;
}

.tg-search-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  padding: clamp(34px, 5vw, 58px) 20px clamp(24px, 4vw, 42px);
}

.tg-search-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(232,191,90,.20), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.10), transparent 23%),
    linear-gradient(135deg, rgba(255,255,255,.07), transparent 46%);
  opacity: .85;
}

.tg-search-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  color: #fff;
}

.tg-search-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tg-search-eyebrow,
.tg-section-head p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 850;
  color: #e8bf5a;
}

.tg-search-count {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

.tg-search-count strong { color: #fff; }

.tg-search-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 950;
}

.tg-search-form { max-width: 820px; }

.tg-search-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 15px;
  padding: 8px;
  box-shadow: 0 18px 54px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.72);
}

.tg-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 560;
  padding: 0 11px;
}

.tg-search-submit {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #0a0a0a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.tg-search-submit:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}

.tg-search-submit svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.tg-search-meta span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
}

.tg-search-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.tg-search-main { display: grid; gap: 14px; }

.tg-result-card {
  background: #fff;
  border: 1px solid #e7e2d7;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  box-shadow: 0 10px 28px rgba(10,10,10,.052);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tg-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(10,10,10,.09);
  border-color: #d6ccb8;
}

.tg-card-image {
  min-height: 174px;
  background: #111;
  color: #fff;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.tg-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 174px;
  object-fit: cover;
  transition: transform .32s ease;
}

.tg-result-card:hover .tg-card-image img { transform: scale(1.035); }

.tg-result-card--agentur .tg-card-image {
  background: #0d0d0d;
  display: grid;
  place-items: center;
}

.tg-result-card--agentur .tg-card-image img {
  object-fit: contain;
  padding: 24px;
  background: linear-gradient(145deg, #0f0f0f, #191919);
  transform: none;
}

.tg-result-card--studio .tg-card-image img { object-fit: cover; }

.tg-image-fallback {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(232,191,90,.26), transparent 35%), #111;
  color: #e8bf5a;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.tg-card-body { padding: 18px 20px; min-width: 0; }

.tg-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.tg-card-kicker span {
  display: inline-flex;
  border-radius: 999px;
  background: #f2eee5;
  color: #6b6252;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tg-card-title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.tg-card-body h2 {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 950;
}

.tg-card-body h2 a { color: inherit; text-decoration: none; }
.tg-card-body h2 a:hover { color: #9b7626; }

.tg-rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 11px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 950;
  font-size: 13px;
  line-height: 1;
}

.tg-rating span { color: #e8bf5a; }
.tg-rating small { color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; margin-left: 2px; }

.tg-card-body p {
  margin: 9px 0 0;
  color: #5e5b55;
  line-height: 1.48;
  font-size: 13.5px;
}

.tg-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tg-highlights span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.tg-facts,
.tg-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tg-facts span,
.tg-slots span {
  display: inline-flex;
  border: 1px solid #e7e2d7;
  background: #fbfaf7;
  color: #575047;
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 11.5px;
  line-height: 1.2;
}

.tg-natural-castings {
  margin: 6px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfd5bf;
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.tg-casting-list { display: grid; gap: 12px; }

.tg-section-head h2 {
  margin: 3px 0 13px;
  font-size: 21px;
  letter-spacing: -.035em;
  font-weight: 950;
}

.tg-casting-card { grid-template-columns: 148px minmax(0, 1fr); box-shadow: none; }
.tg-casting-image,
.tg-casting-image img { min-height: 150px; }

.tg-search-sidebar { position: sticky; top: 18px; }

.tg-side-box {
  background: #101010;
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 46px rgba(10,10,10,.18);
}

.tg-side-box .tg-section-head h2 { color: #fff; }
.tg-side-empty { color: rgba(255,255,255,.65); }
.tg-studio-list { display: grid; gap: 10px; }

.tg-studio-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 13px;
  overflow: hidden;
  padding: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  transition: background .18s ease, transform .18s ease;
}

.tg-studio-card:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }

.tg-studio-card img,
.tg-studio-fallback {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  background: #222;
  display: grid;
  place-items: center;
  color: #e8bf5a;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.tg-studio-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-studio-card span,
.tg-studio-card em {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.tg-empty-card {
  background: #fff;
  border: 1px solid #e7e2d7;
  border-radius: 16px;
  padding: 26px;
}

.tg-empty-card h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.tg-empty-card p { margin: 0; color: #5e5b55; }

@media (max-width: 980px) {
  .tg-search-content { grid-template-columns: 1fr; }
  .tg-search-sidebar { position: static; }
}

@media (max-width: 680px) {
  .tg-search-hero { padding: 28px 14px 22px; }
  .tg-search-content { width: min(100% - 22px, 1240px); padding: 16px 0 104px; }
  .tg-result-card,
  .tg-casting-card { grid-template-columns: 1fr; }
  .tg-card-image,
  .tg-card-image img,
  .tg-casting-image,
  .tg-casting-image img { min-height: 210px; }
  .tg-result-card--agentur .tg-card-image,
  .tg-result-card--agentur .tg-card-image img { min-height: 170px; }
  .tg-search-shell { border-radius: 14px; }
  .tg-search-input { height: 46px; font-size: 15px; }
  .tg-search-submit { width: 46px; height: 46px; border-radius: 11px; }
  .tg-card-title-row { align-items: flex-start; }
  .tg-card-body { padding: 17px; }
  .tg-search-hero-topline { align-items: flex-start; }
  .tg-search-hero h1 { font-size: 36px; }
}

/* Search cards: real profile data presentation */
.tg-search-hero--compact {
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(18px, 3vw, 28px);
}

.tg-search-hero--compact h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 12px;
}

.tg-card-image--logo img {
  object-fit: contain !important;
  padding: 24px;
  background: linear-gradient(145deg, #101010, #1b1b1b);
}

.tg-card-image--banner img {
  object-fit: cover !important;
  padding: 0 !important;
}

.tg-facts span {
  gap: 6px;
  align-items: baseline;
}

.tg-facts span b {
  color: #111;
  font-weight: 900;
  margin-right: 2px;
}

.tg-casting-image {
  position: relative;
}

.tg-casting-agency-logo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.12);
  padding: 7px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}

.tg-casting-agency-logo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block;
}


/* v4: compact search cards, real logo/studio required image handling */
.tg-result-card--agentur .tg-card-image,
.tg-result-card--agentur .tg-card-image--logo {
  background: linear-gradient(145deg, #ffffff 0%, #f7f3ea 100%) !important;
  border-right: 1px solid #eee7db;
}

.tg-result-card--agentur .tg-card-image img,
.tg-card-image--logo img {
  object-fit: contain !important;
  padding: 18px !important;
  background: transparent !important;
  min-height: 0 !important;
}

.tg-result-card--studio .tg-card-image,
.tg-result-card--studio .tg-card-image--banner {
  min-height: 148px;
  background: #e9e4da;
}

.tg-result-card--studio .tg-card-image img,
.tg-card-image--banner img {
  min-height: 148px !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}

.tg-result-card--studio {
  grid-template-columns: 156px minmax(0, 1fr);
}

.tg-result-card--agentur {
  grid-template-columns: 142px minmax(0, 1fr);
}

.tg-casting-card .tg-card-image { background: #f7f3ea; }
.tg-casting-card .tg-card-image img { object-fit: cover; }
.tg-facts span { white-space: normal; }

@media (max-width: 720px) {
  .tg-result-card--studio,
  .tg-result-card--agentur { grid-template-columns: 1fr; }
  .tg-result-card--agentur .tg-card-image,
  .tg-result-card--studio .tg-card-image { min-height: 170px; }
  .tg-result-card--agentur .tg-card-image img,
  .tg-result-card--studio .tg-card-image img { min-height: 170px !important; }
}

/* v5: equal-height compact cards */
.tg-search-main,
.tg-casting-list {
  align-items: stretch;
}

.tg-result-card,
.tg-casting-card {
  min-height: 206px;
  height: 206px;
}

.tg-result-card--agentur,
.tg-result-card--studio {
  min-height: 196px;
  height: 196px;
}

.tg-card-image,
.tg-card-image img,
.tg-casting-image,
.tg-casting-image img {
  height: 100%;
  min-height: 0 !important;
}

.tg-card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 15px 17px;
}

.tg-card-kicker {
  margin-bottom: 7px;
  max-height: 24px;
  overflow: hidden;
}

.tg-card-title-row {
  min-width: 0;
  align-items: flex-start;
}

.tg-card-body h2 {
  font-size: clamp(19px, 2.1vw, 25px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-rating {
  margin-left: auto;
  align-self: flex-start;
}

.tg-card-body p {
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-highlights {
  margin-top: 9px;
  max-height: 28px;
  overflow: hidden;
}

.tg-facts {
  margin-top: auto;
  padding-top: 10px;
  max-height: 45px;
  overflow: hidden;
}

.tg-facts span,
.tg-slots span {
  padding: 5px 7px;
  font-size: 11px;
}

.tg-card-image--logo img,
.tg-result-card--agentur .tg-card-image img {
  padding: 16px !important;
}

@media (max-width: 680px) {
  .tg-result-card,
  .tg-casting-card,
  .tg-result-card--agentur,
  .tg-result-card--studio {
    height: auto;
    min-height: 0;
  }

  .tg-card-image,
  .tg-card-image img,
  .tg-casting-image,
  .tg-casting-image img {
    height: 178px !important;
    min-height: 178px !important;
  }

  .tg-card-kicker,
  .tg-highlights,
  .tg-facts {
    max-height: none;
  }

  .tg-card-body p {
    -webkit-line-clamp: 3;
  }
}

/* v6: unified image width for user, agency and studio cards only */
.tg-result-card,
.tg-result-card--agentur,
.tg-result-card--studio {
  grid-template-columns: 172px minmax(0, 1fr);
}

.tg-result-card .tg-card-image,
.tg-result-card--agentur .tg-card-image,
.tg-result-card--studio .tg-card-image {
  width: 172px;
  max-width: 172px;
}

.tg-result-card .tg-card-image img,
.tg-result-card--agentur .tg-card-image img,
.tg-result-card--studio .tg-card-image img {
  width: 100%;
}

@media (max-width: 720px) {
  .tg-result-card,
  .tg-result-card--agentur,
  .tg-result-card--studio {
    grid-template-columns: 1fr;
  }

  .tg-result-card .tg-card-image,
  .tg-result-card--agentur .tg-card-image,
  .tg-result-card--studio .tg-card-image {
    width: 100%;
    max-width: none;
  }
}

/* v7: natural FAQ integration inside tg_search */
.tg-faq-results {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfd5bf;
  background: linear-gradient(180deg, #fffaf0, #fff);
}

.tg-faq-hit-list {
  display: grid;
  gap: 10px;
}

.tg-faq-hit {
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: 0 10px 26px rgba(10,10,10,.045);
}

.tg-faq-hit-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.tg-faq-hit-top span,
.tg-faq-hit-top strong {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tg-faq-hit-top span {
  background: #f2eee5;
  color: #6b6252;
}

.tg-faq-hit-top strong {
  background: #0a0a0a;
  color: #e8bf5a;
}

.tg-faq-hit h3 {
  margin: 0;
  color: #0a0a0a;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 950;
}

.tg-faq-hit p {
  margin: 8px 0 0;
  color: #5e5b55;
  line-height: 1.5;
  font-size: 13.5px;
}

.tg-faq-link {
  display: inline-flex;
  margin-top: 11px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.tg-faq-link:hover {
  background: #9b7626;
  color: #fff;
}

.tg-search-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 4px;
}

.tg-pager-link,
.tg-pager-current {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #ded6c7;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10,10,10,.045);
}

.tg-pager-link:not(.is-disabled):hover {
  border-color: #c7b78f;
  transform: translateY(-1px);
}

.tg-pager-link.is-disabled {
  opacity: .38;
  pointer-events: none;
}

.tg-pager-current {
  color: #685b3c;
  background: #fbf8ef;
}
