:root {
  --mpz-brand: #2848c4;
}

body {
  font-feature-settings: 'cv11', 'ss03';
}

.navbar-brand .bi {
  font-size: 1.25rem;
}

.card {
  border-radius: 0.75rem;
}

.btn-primary {
  --bs-btn-bg: var(--mpz-brand);
  --bs-btn-border-color: var(--mpz-brand);
  --bs-btn-hover-bg: #1f3aa5;
  --bs-btn-hover-border-color: #1f3aa5;
  --bs-btn-active-bg: #1a3193;
  --bs-btn-active-border-color: #1a3193;
}

.form-label {
  font-weight: 500;
}

.stat-tile {
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  padding: 1rem 1.25rem;
  border: 1px solid var(--bs-border-color-translucent);
}

.stat-tile .value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.stat-tile .label {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
}

.cooldown-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bs-secondary-bg);
  overflow: hidden;
}

.cooldown-bar > span {
  display: block;
  height: 100%;
  background: var(--mpz-brand);
  transition: width 0.5s linear;
}

/* ============================================================================
   ChatGPT-vari prompt ekranı
   ============================================================================ */
.gpt-stage {
  --gpt-fg: #0d0d0d;
  --gpt-muted: #6e6e80;
  --gpt-bubble-user: #f4f4f4;
  --gpt-border: #e5e5e5;
}

.gpt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gpt-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.gpt-logo svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.gpt-logo-lg {
  width: 56px;
  height: 56px;
}

.gpt-logo-lg svg {
  width: 34px;
  height: 34px;
}

.gpt-title {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--gpt-fg);
}

.gpt-subtitle {
  color: var(--gpt-muted);
  font-size: 0.85rem;
}

.gpt-attempts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--gpt-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gpt-muted);
  background: #fff;
}

.gpt-attempts strong {
  color: var(--gpt-fg);
  font-weight: 600;
}

.gpt-thread {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 0 1.5rem;
}

.gpt-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.gpt-msg.user {
  justify-content: flex-end;
}

.gpt-msg .gpt-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gpt-msg .gpt-avatar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gpt-msg .gpt-msg-inner {
  max-width: 78%;
  min-width: 0;
}

.gpt-msg .gpt-bubble {
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--gpt-fg);
}

.gpt-msg.user .gpt-bubble {
  background: var(--gpt-bubble-user);
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
}

.gpt-msg.ai .gpt-bubble {
  padding-top: 0.2rem;
}

.gpt-msg .gpt-meta {
  color: var(--gpt-muted);
  font-size: 0.72rem;
  margin-top: 0.3rem;
}

.gpt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gpt-muted);
  padding: 2.5rem 0;
}

.gpt-empty-title {
  color: var(--gpt-fg);
  font-size: 1.25rem;
  font-weight: 600;
}

.gpt-empty-sub {
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.gpt-composer {
  position: relative;
}

.gpt-composer textarea {
  width: 100%;
  border: 1px solid var(--gpt-border);
  border-radius: 24px;
  padding: 0.85rem 3rem 0.85rem 1.1rem;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.4;
  background: #fff;
  color: var(--gpt-fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.gpt-composer textarea:focus {
  outline: 0;
  border-color: #0d0d0d;
  box-shadow: 0 0 0 0.2rem rgba(13, 13, 13, 0.08);
}

.gpt-composer textarea:disabled {
  background: #f7f7f8;
}

.gpt-composer .gpt-send {
  position: absolute;
  right: 0.45rem;
  bottom: 0.55rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}

.gpt-composer .gpt-send:hover:not(:disabled) {
  background: #2f2f2f;
}

.gpt-composer .gpt-send:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.gpt-composer-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gpt-muted);
  font-size: 0.72rem;
  margin-top: 0.45rem;
  padding: 0 0.6rem;
}

/* ============================================================================
   Gemini-vari görsel üretim ekranı
   ============================================================================ */
.gem-stage {
  --gem-fg: #1f1f1f;
  --gem-muted: #5f6368;
  --gem-bubble-user: #e9eef6;
  --gem-border: #dadce0;
  --gem-surface: #ffffff;
  --gem-accent-start: #4285f4;
  --gem-accent-mid: #9b72cb;
  --gem-accent-end: #d96570;
}

.gem-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gem-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f8f9fb;
  border: 1px solid var(--gem-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.gem-logo svg {
  width: 22px;
  height: 22px;
}

.gem-logo-lg {
  width: 64px;
  height: 64px;
}

.gem-logo-lg svg {
  width: 38px;
  height: 38px;
}

.gem-title {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--gem-fg);
}

.gem-title-sub {
  background: linear-gradient(
    90deg,
    var(--gem-accent-start),
    var(--gem-accent-mid),
    var(--gem-accent-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  margin-left: 0.25rem;
}

.gem-subtitle {
  color: var(--gem-muted);
  font-size: 0.85rem;
}

.gem-attempts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--gem-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gem-muted);
  background: var(--gem-surface);
}

.gem-attempts strong {
  color: var(--gem-fg);
  font-weight: 600;
}

.gem-thread {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
}

.gem-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.gem-msg.user {
  justify-content: flex-end;
}

.gem-msg .gem-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8f9fb;
  border: 1px solid var(--gem-border);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gem-msg .gem-avatar svg {
  width: 20px;
  height: 20px;
}

.gem-msg .gem-msg-inner {
  max-width: 78%;
  min-width: 0;
}

.gem-msg .gem-msg-inner-wide {
  max-width: 86%;
}

.gem-bubble {
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--gem-fg);
}

.gem-msg.user .gem-bubble {
  background: var(--gem-bubble-user);
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
}

.gem-bubble-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--gem-muted);
}

.gem-msg .gem-meta {
  color: var(--gem-muted);
  font-size: 0.72rem;
  margin-top: 0.35rem;
}

.gem-image-frame {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(var(--gem-surface), var(--gem-surface)) padding-box,
    linear-gradient(
        135deg,
        var(--gem-accent-start),
        var(--gem-accent-mid),
        var(--gem-accent-end)
      )
      border-box;
  border: 2px solid transparent;
  padding: 2px;
  max-width: 100%;
  width: max-content;
}

.gem-image-frame img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  border-radius: 12px;
}

.gem-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gem-muted);
  padding: 2.5rem 0;
}

.gem-empty-title {
  font-size: 1.6rem;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--gem-accent-start),
    var(--gem-accent-mid),
    var(--gem-accent-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gem-empty-sub {
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.gem-composer {
  position: relative;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--gem-accent-start),
    var(--gem-accent-mid),
    var(--gem-accent-end)
  );
}

.gem-composer textarea {
  width: 100%;
  border: 0;
  border-radius: 26px;
  padding: 0.95rem 3.25rem 0.95rem 1.2rem;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--gem-surface);
  color: var(--gem-fg);
  display: block;
}

.gem-composer textarea:focus {
  outline: 0;
  box-shadow: none;
}

.gem-composer textarea:disabled {
  background: #f7f7f8;
}

.gem-composer .gem-send {
  position: absolute;
  right: 0.5rem;
  bottom: 0.55rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--gem-accent-start),
    var(--gem-accent-mid),
    var(--gem-accent-end)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: filter 0.15s, transform 0.15s;
}

.gem-composer .gem-send:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.gem-composer .gem-send:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.gem-composer-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gem-muted);
  font-size: 0.72rem;
  margin-top: 0.45rem;
  padding: 0 0.6rem;
}

/* ============================================================================
   Veo 3 stili video üretim ekranı (sinematik koyu tema)
   ============================================================================ */
.veo-card {
  background: radial-gradient(
      120% 60% at 0% 0%,
      rgba(124, 58, 237, 0.18),
      transparent 60%
    ),
    radial-gradient(120% 60% at 100% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    #0f1014;
  color: #f3f4f6;
}

.veo-stage {
  --veo-fg: #f3f4f6;
  --veo-muted: #a1a1aa;
  --veo-surface: #18191f;
  --veo-surface-2: #1f2027;
  --veo-border: #2a2c34;
  --veo-bubble-user: #2a2c34;
  --veo-accent-start: #7c3aed;
  --veo-accent-mid: #ec4899;
  --veo-accent-end: #f59e0b;
}

.veo-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.veo-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 24px -8px rgba(236, 72, 153, 0.6);
}

.veo-logo svg {
  width: 100%;
  height: 100%;
}

.veo-logo-lg {
  width: 72px;
  height: 72px;
}

.veo-title {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--veo-fg);
  letter-spacing: -0.01em;
}

.veo-title-sub {
  background: linear-gradient(
    90deg,
    var(--veo-accent-start),
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  margin-left: 0.15rem;
}

.veo-subtitle {
  color: var(--veo-muted);
  font-size: 0.85rem;
}

.veo-attempts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--veo-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--veo-muted);
  background: var(--veo-surface);
}

.veo-attempts strong {
  color: var(--veo-fg);
  font-weight: 600;
}

.veo-thread {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.veo-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.veo-msg.user {
  justify-content: flex-end;
}

.veo-msg .veo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.veo-msg .veo-avatar svg {
  width: 100%;
  height: 100%;
}

.veo-msg .veo-msg-inner {
  max-width: 78%;
  min-width: 0;
}

.veo-msg .veo-msg-inner-wide {
  max-width: 88%;
}

.veo-bubble {
  line-height: 1.55;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--veo-fg);
}

.veo-msg.user .veo-bubble {
  background: var(--veo-bubble-user);
  padding: 0.7rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--veo-border);
}

.veo-msg .veo-meta {
  color: var(--veo-muted);
  font-size: 0.72rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.veo-msg.user .veo-meta {
  justify-content: flex-end;
}

.veo-status {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.veo-status-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.veo-status-err {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.veo-status-run {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.veo-video-frame {
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--veo-accent-start),
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
  width: max-content;
  max-width: 100%;
}

.veo-video-frame video {
  display: block;
  border-radius: 14px;
  background: #000;
  max-width: 100%;
  max-height: 480px;
}

.veo-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.veo-pending {
  position: relative;
  border: 1px solid var(--veo-border);
  background: var(--veo-surface);
  border-radius: 16px;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  text-align: center;
}

.veo-pending-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(236, 72, 153, 0.15) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: veoShimmer 2.2s linear infinite;
  pointer-events: none;
}

@keyframes veoShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.veo-pending-text {
  position: relative;
  color: var(--veo-muted);
  font-size: 0.9rem;
}

.veo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--veo-muted);
  padding: 3rem 0 2rem;
}

.veo-empty-title {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--veo-accent-start),
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.veo-empty-sub {
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.veo-banner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  margin: 0.5rem 0;
}

.veo-banner-info {
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #ddd6fe;
}

.veo-banner-warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  flex-direction: column;
  align-items: stretch;
}

.veo-banner-warn .cooldown-bar {
  background: rgba(255, 255, 255, 0.08);
}

.veo-banner-warn .cooldown-bar > span {
  background: linear-gradient(
    90deg,
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
}

.veo-composer {
  position: relative;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--veo-accent-start),
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
}

.veo-composer textarea {
  width: 100%;
  border: 0;
  border-radius: 26px;
  padding: 0.95rem 3.3rem 0.95rem 1.2rem;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--veo-surface-2);
  color: var(--veo-fg);
  display: block;
}

.veo-composer textarea::placeholder {
  color: #6b7280;
}

.veo-composer textarea:focus {
  outline: 0;
  box-shadow: none;
}

.veo-composer textarea:disabled {
  background: #15161b;
  color: #6b7280;
}

.veo-composer .veo-send {
  position: absolute;
  right: 0.5rem;
  bottom: 0.55rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--veo-accent-start),
    var(--veo-accent-mid),
    var(--veo-accent-end)
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: filter 0.15s, transform 0.15s;
}

.veo-composer .veo-send:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.veo-composer .veo-send:disabled {
  background: #3a3b42;
  cursor: not-allowed;
}

.veo-composer-meta {
  display: flex;
  justify-content: space-between;
  color: var(--veo-muted);
  font-size: 0.72rem;
  margin-top: 0.55rem;
  padding: 0 0.8rem;
}

/* ============================================================================
   "gsx" — arama deneyimi (Google-arama tarzı UI deseni; tescilli logo değil)
   ============================================================================ */
.gsx-stage {
  --gsx-fg: #202124;
  --gsx-muted: #5f6368;
  --gsx-link: #1a0dab;
  --gsx-link-visited: #681da8;
  --gsx-url: #006621;
  --gsx-border: #dfe1e5;
  --gsx-surface: #ffffff;
  --gsx-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: var(--gsx-fg);
}

.gsx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gsx-topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.gsx-topbar-tag {
  color: var(--gsx-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.gsx-wordmark {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.gsx-wordmark .l1 { color: #2a7de1; }
.gsx-wordmark .l2 { color: #e8453c; }
.gsx-wordmark .l3 { color: #f2b237; }
.gsx-wordmark .l4 { color: #2a7de1; }
.gsx-wordmark .l5 { color: #3aa86b; }

.gsx-attempts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--gsx-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gsx-muted);
  background: var(--gsx-surface);
}

.gsx-attempts strong {
  color: var(--gsx-fg);
  font-weight: 600;
}

.gsx-searchbar-wrap {
  margin-bottom: 1rem;
}

.gsx-searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gsx-border);
  border-radius: 24px;
  background: var(--gsx-surface);
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.gsx-searchbar:focus-within {
  box-shadow: 0 1px 8px rgba(32, 33, 36, 0.18);
  border-color: rgba(32, 33, 36, 0.15);
}

.gsx-searchbar .gsx-search-icon {
  color: var(--gsx-muted);
  font-size: 1.05rem;
}

.gsx-searchbar input[type='text'] {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1rem;
  background: transparent;
  color: var(--gsx-fg);
  min-width: 0;
}

.gsx-searchbar input[type='text']::placeholder {
  color: #9aa0a6;
}

.gsx-searchbar input[type='text']:disabled {
  color: #9aa0a6;
}

.gsx-search-btn {
  border: 0;
  background: linear-gradient(135deg, #2a7de1, #3aa86b);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: filter 0.15s, transform 0.15s;
}

.gsx-search-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gsx-search-btn:disabled {
  background: #c5c8cd;
  cursor: not-allowed;
}

.gsx-searchbar-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gsx-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0 1rem;
}

.gsx-banner {
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.gsx-banner-warn {
  background: rgba(242, 178, 55, 0.12);
  border: 1px solid rgba(242, 178, 55, 0.4);
  color: #8a5d00;
}

.gsx-banner-warn .cooldown-bar {
  background: rgba(0, 0, 0, 0.06);
}

.gsx-banner-warn .cooldown-bar > span {
  background: linear-gradient(90deg, #f2b237, #e8453c);
}

.gsx-thread {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 0;
}

.gsx-empty {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--gsx-fg);
}

.gsx-block-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gsx-border);
  margin-bottom: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.3rem;
}

.gsx-block-head:hover {
  background: rgba(32, 33, 36, 0.04);
}

.gsx-query {
  font-weight: 500;
  color: var(--gsx-fg);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.gsx-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--gsx-muted);
  transition: transform 0.2s ease;
}

.gsx-block-head[aria-expanded='false'] .gsx-chevron {
  transform: rotate(-90deg);
}

.gsx-block-meta {
  color: var(--gsx-muted);
  font-size: 0.78rem;
}

.gsx-results {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.gsx-result {
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

.gsx-result-url {
  color: var(--gsx-url);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 0.1rem;
}

.gsx-result-title {
  color: var(--gsx-link);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.gsx-result:visited .gsx-result-title,
.gsx-result-link:visited .gsx-result-title {
  color: var(--gsx-link-visited);
}

.gsx-result-snippet {
  color: #4d5156;
  font-size: 0.88rem;
  line-height: 1.55;
}

.gsx-attribution {
  text-align: center;
  color: var(--gsx-muted);
  font-size: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gsx-border);
}

/* Geniş varyant — görsel arama gridi için */
.gsx-stage.gsx-stage-wide {
  max-width: 1100px;
}

/* Görsel arama grid'i — Google Görseller stilinde kart düzeni */
.gsx-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gsx-img-card {
  display: flex;
  flex-direction: column;
  background: var(--gsx-surface);
  border: 1px solid var(--gsx-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.gsx-img-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gsx-shadow);
  border-color: rgba(32, 33, 36, 0.18);
}

.gsx-img-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gsx-img-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.gsx-img-meta {
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 0;
}

.gsx-img-title {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--gsx-fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gsx-img-source {
  font-size: 0.72rem;
  color: var(--gsx-url);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   "ytx" — video arama deneyimi (YouTube tarzı UI deseni; tescilli logo değil)
   ============================================================================ */
.ytx-stage {
  --ytx-bg: #0f0f0f;
  --ytx-surface: #181818;
  --ytx-surface-2: #272727;
  --ytx-border: #333333;
  --ytx-fg: #f1f1f1;
  --ytx-muted: #aaaaaa;
  --ytx-red: #ff0033;
  --ytx-red-hover: #ff1f4d;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: var(--ytx-fg);
  background: var(--ytx-bg);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 2rem;
}

.ytx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ytx-topbar-brand {
  display: flex;
  align-items: center;
}

.ytx-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.ytx-glyph {
  display: inline-flex;
  align-items: center;
}

.ytx-glyph svg {
  width: 36px;
  height: 26px;
  display: block;
}

.ytx-text {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ytx-fg);
  line-height: 1;
}

.ytx-attempts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--ytx-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ytx-muted);
  background: var(--ytx-surface);
}

.ytx-attempts strong {
  color: var(--ytx-fg);
  font-weight: 600;
}

.ytx-searchbar-wrap {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.ytx-searchbar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ytx-border);
  border-radius: 999px;
  background: var(--ytx-surface);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ytx-searchbar:focus-within {
  border-color: #3a86ff;
  box-shadow: inset 0 0 0 1px rgba(58, 134, 255, 0.4);
}

.ytx-searchbar input[type='text'] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  color: var(--ytx-fg);
  padding: 0.65rem 1.1rem;
  min-width: 0;
}

.ytx-searchbar input[type='text']::placeholder {
  color: #717171;
}

.ytx-search-btn {
  background: var(--ytx-surface-2);
  color: var(--ytx-fg);
  border: 0;
  padding: 0 1.4rem;
  font-size: 1rem;
  border-left: 1px solid var(--ytx-border);
  transition: background 0.15s;
}

.ytx-search-btn:hover:not(:disabled) {
  background: #3a3a3a;
}

.ytx-search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ytx-searchbar-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ytx-muted);
  font-size: 0.75rem;
  margin-top: 0.6rem;
  padding: 0 1rem;
}

.ytx-banner {
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.ytx-banner-warn {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.ytx-banner-warn .cooldown-bar {
  background: rgba(255, 255, 255, 0.1);
}

.ytx-banner-warn .cooldown-bar > span {
  background: linear-gradient(90deg, #fbbf24, var(--ytx-red));
}

.ytx-thread {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ytx-empty {
  text-align: center;
  padding: 3rem 0 2rem;
  color: var(--ytx-muted);
}

.ytx-empty p {
  color: var(--ytx-fg);
}

.ytx-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ytx-block-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ytx-border);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.3rem;
}

.ytx-block-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ytx-query {
  color: var(--ytx-fg);
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.ytx-chevron {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--ytx-muted);
  transition: transform 0.2s ease;
}

.ytx-block-head[aria-expanded='false'] .ytx-chevron {
  transform: rotate(-90deg);
}

.ytx-block-meta {
  color: var(--ytx-muted);
  font-size: 0.78rem;
}

.ytx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem 1rem;
}

.ytx-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ytx-fg);
  background: transparent;
  transition: transform 0.15s;
}

.ytx-card:hover {
  color: var(--ytx-fg);
}

.ytx-card:hover .ytx-title {
  color: #ffffff;
}

.ytx-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.ytx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ytx-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.ytx-card-body {
  padding: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ytx-title {
  color: var(--ytx-fg);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ytx-channel {
  color: var(--ytx-muted);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytx-stats {
  color: var(--ytx-muted);
  font-size: 0.78rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ytx-stats span:not(:last-child)::after {
  content: '·';
  margin-left: 0.4rem;
}

.ytx-attribution {
  text-align: center;
  color: var(--ytx-muted);
  font-size: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ytx-border);
}
