:root {
  --bg: #090b10;
  --surface: #11151d;
  --surface-2: #171c25;
  --surface-3: #202733;
  --line: #2b3341;
  --text: #f4f6fa;
  --muted: #97a1b1;
  --accent: #ff6a2b;
  --accent-2: #ffb243;
  --film: #b983ff;
  --success: #4ade80;
  --popular: #ff4b5b;
  --button-popular-bg: #20242c;
  --button-popular-text: #eef2f8;
  --button-popular-icon: #ff4b5b;
  --favorite: #b983ff;
  --report: #c86432;
  --report-hover: #ff8a55;
  --copy-button-bg: #20252f;
  --copy-button-text: #e5e9ef;
  --button-collection-visual: #ff6a2b;
  --button-collection-film: #b983ff;
  --button-collection-video: #b983ff;
  --button-collection-custom: #ffb243;
  --button-collection-mixed: #b983ff;
  --button-random: #ff6a2b;
  --button-category: #ff6a2b;
  --button-language: #ffb243;
  --button-edit: #ff8954;
  --button-action-bg: #171c25;
  --button-action-text: #97a1b1;
  --button-like: #97a1b1;
  --button-dislike: #97a1b1;
  --button-share: #97a1b1;
  --button-account-bg: #3c4e60;
  --button-account-text: #eef2f8;
  --button-logout-bg: #30191d;
  --button-logout-text: #ff9aa6;
  --button-saved-bg: #31231e;
  --button-saved-text: #ffb18f;
  --button-sort-bg: #171c25;
  --button-sort-text: #d7dce5;
  --button-load-bg: #171c25;
  --button-load-text: #f4f6fa;
  --button-top-bg: #0f1219;
  --button-top-text: #ffc1a0;
  --button-modal-primary-bg: #ff6a2b;
  --button-modal-primary-text: #ffffff;
  --button-modal-secondary-bg: #20252f;
  --button-modal-secondary-text: #dbe1eb;
  --max: 1480px;
  color-scheme: dark;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 106, 43, 0.13), transparent 31rem),
    radial-gradient(circle at 82% 0%, rgba(185, 131, 255, 0.09), transparent 29rem),
    var(--bg);
  color: var(--text);
}

.pa-image-protection .visual-toggle img,
.pa-image-protection .dialog-image img,
.pa-image-protection .mixed-preview-toggle img,
.pa-image-protection .mixed-preview-toggle video,
.pa-image-protection .mixed-media-zoom img,
.pa-image-protection .mixed-final-media img,
.pa-image-protection .mixed-final-media video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(255, 106, 43, 0.2));
  overflow: visible;
}

.brand-logo-page,
.brand-logo-ring,
.brand-logo-lines,
.brand-logo-ai,
.brand-logo-node {
  fill: none;
  stroke: url(#pa-brand-gradient);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-page {
  stroke-width: 3;
}

.brand-logo-ring,
.brand-logo-lines {
  stroke-width: 2.7;
}

.brand-logo-ai,
.brand-logo-node {
  stroke-width: 2.2;
}

.brand-logo-pointer {
  fill: var(--text);
  stroke: var(--bg);
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.brand-wordmark {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-wordmark-accent {
  color: var(--accent-2);
}

.header-count {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.header-tools {
  display: flex;
  gap: 18px;
  align-items: center;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #667286;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.language-button {
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #8f9bad;
  cursor: pointer;
  font: inherit;
  transition: 160ms ease;
}

.language-button:hover,
.language-button.is-active {
  border-color: rgba(255, 178, 67, 0.55);
  background: rgba(255, 106, 43, 0.1);
  color: var(--accent-2);
}

main {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-areas:
    "copy tools"
    "copy guide";
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  column-gap: clamp(36px, 8vw, 130px);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: end;
  padding: clamp(54px, 8vw, 108px) 0 clamp(48px, 7vw, 86px);
}

.intro-copy {
  grid-area: copy;
}

.intro-tools {
  display: grid;
  grid-area: tools;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  align-self: start;
  width: 100%;
}

.intro-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.9rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

h1 span {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.intro-guide {
  display: flex;
  grid-area: guide;
  gap: 20px;
  align-items: flex-start;
  max-width: 500px;
  padding: 24px 0 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.intro-guide p {
  margin: 0;
  color: #c8ced8;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.62;
}

.guide-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-icon svg {
  width: 100%;
  height: 100%;
  padding: 8px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.library {
  padding-bottom: 70px;
}

.control-panel {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(18px);
}

.collection-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.collection-select-wrap {
  display: none;
}

.collection-select-label {
  display: none;
}

.collection-select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid #343d4c;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.collection-select option {
  background: #171b22;
  color: #f4f6fa;
}

.collection-tab {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #343d4c;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transform: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.collection-tab b {
  display: grid;
  min-width: 31px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-3);
  color: #bbc3cf;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
}

.collection-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collection-tab-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 3px;
  border-radius: 50%;
  background: var(--film);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(185, 131, 255, 0.18);
  box-sizing: border-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collection-tab-icon-play {
  fill: currentColor;
  stroke: none;
}

.collection-tab[data-collection="mixed"]:hover .collection-tab-icon,
.collection-tab[data-collection="mixed"].is-active .collection-tab-icon {
  box-shadow: 0 0 0 3px rgba(185, 131, 255, 0.28), 0 0 14px rgba(185, 131, 255, 0.34);
}

.collection-tab:hover,
.collection-tab:focus-visible {
  border-color: #566276;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  transform: none;
}

.collection-tab.is-active {
  border-color: #343d4c;
  background: var(--surface-2);
  color: white;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.collection-tab[data-collection="film"].is-active,
.collection-tab[data-collection="video"].is-active {
  box-shadow: inset 0 -2px 0 var(--film);
}

.random-button,
.popular-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 106, 43, 0.62);
  border-radius: 12px;
  background: rgba(255, 106, 43, 0.1);
  color: #ffbd97;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
  transform: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.random-button svg,
.popular-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.random-button:hover,
.random-button:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 106, 43, 0.18);
  color: white;
  box-shadow: 0 0 18px rgba(255, 106, 43, 0.14);
  transform: none;
}

.popular-button {
  border-color: rgba(255, 75, 91, 0.7);
  background: rgba(220, 38, 54, 0.13);
  color: #ff9ca5;
}

.popular-button svg {
  fill: currentColor;
  stroke: currentColor;
}

.popular-button:hover,
.popular-button:focus-visible {
  border-color: var(--popular);
  background: rgba(220, 38, 54, 0.24);
  color: white;
  box-shadow: 0 0 18px rgba(255, 75, 91, 0.17);
  transform: none;
}

.popular-button.is-active {
  border-color: #ff6674;
  background: linear-gradient(135deg, rgba(220, 38, 54, 0.38), rgba(126, 25, 39, 0.28));
  color: white;
  box-shadow: inset 0 -2px 0 #ff4b5b, 0 0 0 3px rgba(255, 75, 91, 0.13);
}

.search-box {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #343d4c;
  border-radius: 12px;
  background: #0e1218;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(255, 106, 43, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.1);
}

.search-box svg {
  width: 20px;
  fill: none;
  stroke: #7f8998;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: #6e7785;
}

.search-box kbd {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #343d4c;
  border-radius: 6px;
  background: var(--surface-2);
  color: #7f8998;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.category-shell {
  position: relative;
  margin: 24px 0 0;
}

.category-shell::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 6px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--bg));
  content: "";
  pointer-events: none;
}

.category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 52px 9px 0;
  scrollbar-color: #313947 transparent;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: 150ms ease;
}

.category-chip:hover {
  border-color: #4a5566;
  color: white;
}

.category-chip.is-active {
  border-color: rgba(255, 106, 43, 0.55);
  background: rgba(255, 106, 43, 0.12);
  color: #ff986b;
}

.film-mode .category-chip.is-active {
  border-color: rgba(185, 131, 255, 0.55);
  background: rgba(185, 131, 255, 0.12);
  color: #cfadff;
}

.result-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}

.result-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-bar-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.sort-controls {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.sort-controls[hidden] {
  display: none;
}

.sort-select-wrap {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #7f8998;
  font-size: 0.7rem;
  font-weight: 700;
}

.sort-select {
  min-height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid #343d4c;
  border-radius: 10px;
  background: var(--surface-2);
  color: #d7dce5;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.sort-select:hover,
.sort-select:focus-visible {
  border-color: #586477;
  color: white;
}

.sort-reset {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 106, 43, 0.5);
  border-radius: 10px;
  background: rgba(255, 106, 43, 0.08);
  color: #ffad85;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.sort-reset[hidden] {
  display: none;
}

.sort-reset:hover,
.sort-reset:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 106, 43, 0.16);
  color: white;
}

#resultCount strong {
  color: white;
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

.interaction-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.interaction-note > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 106, 43, 0.1);
}

.interaction-note > span:not(:first-child) {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.film-mode .interaction-note > span:first-child {
  background: var(--film);
  box-shadow: 0 0 0 5px rgba(185, 131, 255, 0.1);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}

.prompt-grid[data-collection="visual"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prompt-grids {
  min-width: 0;
}

.prompt-grid[data-collection="film"],
.prompt-grid[data-collection="video"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 410px), 1fr));
}

.prompt-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 28, 37, 0.95), rgba(14, 17, 24, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.prompt-card:hover {
  border-color: #485365;
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.admin-card-edit {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 137, 84, 0.85);
  border-radius: 999px;
  background: rgba(12, 15, 21, 0.9);
  color: #ffb28c;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: 160ms ease;
}

.admin-card-edit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-card-edit:hover,
.admin-card-edit:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.visual-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #07090d;
  cursor: crosshair;
}

.prompt-grid[data-collection="visual"] .visual-toggle {
  aspect-ratio: 4 / 3;
}

.prompt-grid[data-collection="film"] .visual-toggle,
.prompt-grid[data-collection="video"] .visual-toggle {
  aspect-ratio: 16 / 9;
}

.prompt-grid[data-collection="custom"] .visual-toggle {
  aspect-ratio: 4 / 3;
}

.prompt-grid[data-collection="popular"] .prompt-card[data-collection="visual"] .visual-toggle,
.prompt-grid[data-collection="popular"] .prompt-card[data-collection="custom"] .visual-toggle,
.prompt-grid[data-collection="saved"] .prompt-card[data-collection="visual"] .visual-toggle,
.prompt-grid[data-collection="saved"] .prompt-card[data-collection="custom"] .visual-toggle {
  aspect-ratio: 4 / 3;
}

.prompt-grid[data-collection="popular"] .prompt-card[data-collection="film"] .visual-toggle,
.prompt-grid[data-collection="popular"] .prompt-card[data-collection="video"] .visual-toggle,
.prompt-grid[data-collection="saved"] .prompt-card[data-collection="film"] .visual-toggle,
.prompt-grid[data-collection="saved"] .prompt-card[data-collection="video"] .visual-toggle {
  aspect-ratio: 16 / 9;
}

.prompt-grid[data-collection="all"] .prompt-card[data-collection="visual"] .visual-toggle,
.prompt-grid[data-collection="all"] .prompt-card[data-collection="custom"] .visual-toggle {
  aspect-ratio: 4 / 3;
}

.prompt-grid[data-collection="all"] .prompt-card[data-collection="film"] .visual-toggle,
.prompt-grid[data-collection="all"] .prompt-card[data-collection="video"] .visual-toggle {
  aspect-ratio: 16 / 9;
}

.visual-toggle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  transition: opacity 180ms ease;
}

.visual-toggle .source-image {
  opacity: 1;
}

.visual-toggle .result-image {
  opacity: 0;
}

.visual-toggle:hover .source-image,
.visual-toggle:focus-visible .source-image,
.visual-toggle.is-revealed .source-image {
  opacity: 0;
}

.visual-toggle:hover .result-image,
.visual-toggle:focus-visible .result-image,
.visual-toggle.is-revealed .result-image {
  opacity: 1;
}

.card-image-state {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #343d4c;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #909aaa;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.card-image-state::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.prompt-card[data-collection="film"] .card-image-state::before,
.prompt-card[data-collection="video"] .card-image-state::before {
  background: var(--film);
}

.card-image-state .result-label {
  display: none;
}

.visual-toggle:hover + .card-body .card-image-state .source-label,
.visual-toggle:focus-visible + .card-body .card-image-state .source-label,
.visual-toggle.is-revealed + .card-body .card-image-state .source-label {
  display: none;
}

.visual-toggle:hover + .card-body .card-image-state .result-label,
.visual-toggle:focus-visible + .card-body .card-image-state .result-label,
.visual-toggle.is-revealed + .card-body .card-image-state .result-label {
  display: inline;
}

.card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.card-category {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.prompt-grid[data-collection="film"] .card-category,
.prompt-grid[data-collection="video"] .card-category {
  color: #c49aff;
}

.prompt-code {
  margin: 12px 0 4px;
  color: white;
  font-family: "DM Mono", monospace;
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  line-height: 1.2;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.prompt-description {
  margin: 0 0 10px;
  color: #e7a17c;
  font-family: "Manrope", sans-serif;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.english-label {
  display: block;
  margin-bottom: 6px;
  color: #747f90;
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-text {
  margin: 0 0 14px;
  color: #b7bfcb;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  block-size: calc(4 * 1.48em);
  overflow: hidden;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}

.copy-button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid #343d4c;
  border-radius: 11px;
  background: var(--copy-button-bg);
  color: var(--copy-button-text);
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
  transition: 160ms ease;
}

.copy-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.copy-button:hover {
  border-color: rgba(255, 106, 43, 0.65);
  background: rgba(255, 106, 43, 0.1);
  color: #ff9a6e;
}

.prompt-grid[data-collection="film"] .copy-button:hover,
.prompt-grid[data-collection="video"] .copy-button:hover {
  border-color: rgba(185, 131, 255, 0.65);
  background: rgba(185, 131, 255, 0.1);
  color: #d4b7ff;
}

.copy-button.is-copied {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
}

.prompt-feedback {
  margin-top: 10px;
}

.pduy-save[hidden] { display: none !important; }

/* Kart eylemleri: oy, paylaş, kaydet ve bildir tek sırada kalır. */
.card-engagement {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  margin-top: 10px;
}

.card-engagement .prompt-feedback,
.card-engagement .feedback-buttons {
  display: contents;
}

.card-engagement .feedback-button,
.card-engagement .pduy-save,
.card-engagement .prompt-report-button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.7rem;
}

.card-engagement .feedback-button {
  gap: 2px;
}

.card-engagement .feedback-button[data-vote],
.card-engagement .pduy-save {
  flex-direction: column;
}

.card-engagement .feedback-count,
.card-engagement .pduy-save-count {
  display: block;
  line-height: 1;
}

.card-engagement .feedback-button[data-vote="1"] { grid-column: 1; grid-row: 1; }
.card-engagement .feedback-button[data-vote="-1"] { grid-column: 2; grid-row: 1; }
.card-engagement .pduy-save { grid-column: 3; grid-row: 1; }
.card-engagement .feedback-share { grid-column: 4; grid-row: 1; }
.card-engagement .prompt-report-button { grid-column: 5; grid-row: 1; }

.card-engagement .pduy-save,
.card-engagement .prompt-report-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  background: transparent;
  color: var(--muted);
}

.card-engagement .pduy-save svg,
.card-engagement .prompt-report-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.card-engagement .feedback-share span,
.card-engagement .pduy-save-label,
.card-engagement .prompt-report-button span {
  display: none;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 66px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.feedback-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-button[data-vote="-1"] svg { transform: rotate(180deg); }

.feedback-button:hover,
.feedback-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: #ffbd97;
  background: rgba(255, 106, 43, 0.1);
}

.feedback-button[aria-pressed="true"] svg { fill: rgba(255, 106, 43, 0.2); }
.feedback-button:disabled { opacity: 0.55; cursor: wait; }

.feedback-status:not(.sr-only) {
  display: block;
  margin-top: 7px;
  color: #ffbd97;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
}

#dialogFeedback .prompt-feedback { margin: 14px 0; }

.prompt-report-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  align-self: center;
  justify-content: center;
  min-height: 34px;
  margin: 9px auto 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7f8998;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.prompt-report-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  color: var(--report);
}

.prompt-report-button:hover,
.prompt-report-button:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--report-hover);
}

#dialogFeedback .prompt-report-button {
  display: flex;
  margin-top: 4px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 38px 0 0;
}

.load-more {
  min-width: 210px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #3a4454;
  border-radius: 999px;
  background: var(--surface-2);
  color: white;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: 160ms ease;
}

.load-more:hover {
  border-color: #657184;
  background: var(--surface-3);
  transform: translateY(-1px);
}

.empty-state {
  padding: 86px 24px;
  border: 1px dashed #343d4c;
  border-radius: 18px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid #343d4c;
  border-radius: 15px;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 1.5rem;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.collection-tab[data-collection="custom"] {
  border-color: rgba(255, 178, 67, 0.72);
  background: linear-gradient(135deg, rgba(255, 178, 67, 0.13), rgba(255, 106, 43, 0.045));
  color: #ffe0a0;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(255, 178, 67, 0.68), 0 0 0 1px rgba(255, 178, 67, 0.07);
}

.collection-tab[data-collection="custom"] b {
  background: rgba(255, 178, 67, 0.16);
  color: #ffe4aa;
}

.collection-tab[data-collection="custom"]:hover,
.collection-tab[data-collection="custom"]:focus-visible {
  border-color: #ffc469;
  background: linear-gradient(135deg, rgba(255, 178, 67, 0.23), rgba(255, 106, 43, 0.09));
  color: white;
  box-shadow: inset 0 -2px 0 #ffba4d, 0 0 18px rgba(255, 178, 67, 0.2);
  transform: none;
}

.collection-tab[data-collection="custom"].is-active {
  border-color: #ffd17a;
  background: linear-gradient(135deg, rgba(255, 178, 67, 0.29), rgba(255, 106, 43, 0.11));
  box-shadow: inset 0 -2px 0 #ffc15e, 0 0 20px rgba(255, 178, 67, 0.22);
  color: white;
  transform: none;
}

.collection-tab[data-collection="custom"] em {
  display: block;
  margin-top: 2px;
  color: #697486;
  font-size: 0.59rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.custom-empty {
  padding: 86px 24px;
  border: 1px dashed #3a4555;
  border-radius: 18px;
  text-align: center;
}

.beta-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 178, 67, 0.4);
  border-radius: 4px;
  color: #ffd48c;
  font-style: normal;
  font-weight: 700;
}

.custom-empty[hidden] {
  display: none;
}

.custom-empty strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 1.35rem;
}

.custom-empty p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 8, 0.84);
  cursor: default;
  backdrop-filter: blur(12px);
}

.random-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(330px, 1.05fr);
  width: min(940px, 100%);
  max-height: min(88dvh, 760px);
  overflow: hidden;
  border: 1px solid #3a4555;
  border-radius: 24px;
  background: linear-gradient(145deg, #171c25, #0d1118);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 106, 43, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
}

.modal-shell.is-open .random-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.report-modal-shell {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.report-modal-shell[hidden] {
  display: none;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 8, 0.86);
  cursor: default;
  backdrop-filter: blur(12px);
}

.report-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90dvh, 760px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #3a4555;
  border-radius: 20px;
  background: linear-gradient(145deg, #171c25, #0d1118);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 106, 43, 0.08);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.report-modal-shell.is-open .report-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.report-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #3a4555;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #dce1e9;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.report-dialog-close:hover,
.report-dialog-close:focus-visible {
  border-color: var(--accent);
  color: white;
}

.report-kicker {
  margin: 0 48px 8px 0;
  color: var(--accent-2);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.report-dialog h2 {
  margin: 0 48px 8px 0;
  color: white;
  font-size: 1.45rem;
}

.report-intro {
  margin: 0;
  color: #aeb7c5;
  font-size: 0.86rem;
  line-height: 1.55;
}

.report-prompt-code {
  margin: 16px 0;
  padding: 10px 12px;
  border: 1px solid #313a49;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #f3f5f8;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.report-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.report-reasons {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-reasons legend,
.report-message-label > span {
  display: block;
  margin-bottom: 8px;
  color: #d9dee7;
  font-size: 0.76rem;
  font-weight: 700;
}

.report-reasons label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #303948;
  border-radius: 9px;
  color: #b9c1cd;
  cursor: pointer;
  font-size: 0.8rem;
}

.report-reasons label:has(input:checked) {
  border-color: rgba(255, 106, 43, 0.58);
  background: rgba(255, 106, 43, 0.08);
  color: #f1c0a6;
}

.report-reasons input {
  margin: 0;
  accent-color: var(--accent);
}

.report-message-label {
  display: block;
  margin-top: 16px;
}

.report-message-label textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #343e4d;
  border-radius: 10px;
  outline: 0;
  background: #0d1118;
  color: #e5e9ef;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
}

.report-message-label textarea:focus {
  border-color: rgba(255, 106, 43, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.09);
}

.report-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #98a3b3;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.report-status.is-success { color: #86efac; }
.report-status.is-error { color: #fda4af; }

.report-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  margin-top: 8px;
}

.report-actions button {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #3a4555;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #dbe1eb;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.report-actions .report-submit {
  border-color: rgba(255, 106, 43, 0.65);
  background: rgba(255, 106, 43, 0.14);
  color: #ffc3a3;
}

.report-actions button:hover,
.report-actions button:focus-visible {
  border-color: var(--accent);
  color: white;
}

.report-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.random-dialog.is-film {
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(185, 131, 255, 0.14);
}

.dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(7, 9, 13, 0.78);
  color: #e7ebf1;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--accent);
  color: white;
}

.dialog-image {
  position: relative;
  display: block;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  background: #05070a;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 150ms ease;
}

.dialog-image:hover img {
  opacity: 0.92;
}

.dialog-image:focus-visible {
  outline: 3px solid rgba(255, 106, 43, 0.86);
  outline-offset: -3px;
}

.random-dialog.is-film .dialog-image:focus-visible {
  outline-color: rgba(185, 131, 255, 0.9);
}

.dialog-badge,
.dialog-image-hint {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(10px);
}

.dialog-badge {
  top: 18px;
  left: 18px;
  gap: 7px;
  padding: 0 11px;
  color: #e7ebf1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.random-dialog.is-film .dialog-badge::before {
  background: var(--film);
}

.dialog-image-hint {
  right: 16px;
  bottom: 16px;
  min-height: 34px;
  padding: 8px 12px;
  color: #d9dee7;
  font-family: "DM Mono", monospace;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dialog-content {
  display: flex;
  min-height: 0;
  overflow-y: auto;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
}

.dialog-kicker {
  margin: 0 44px 9px 0;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.random-dialog.is-film .dialog-kicker {
  color: #cdaaff;
}

.dialog-code {
  margin: 0 0 24px;
  font-family: "DM Mono", monospace;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dialog-description {
  margin: -10px 0 24px;
  color: #aeb8c8;
  font-size: 0.94rem;
  line-height: 1.6;
}

.dialog-prompt-label {
  margin-bottom: 8px;
  color: #747f90;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-prompt {
  margin: 0 0 28px;
  color: #c3cad5;
  font-size: 1rem;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex-shrink: 0;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.dialog-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #3a4555;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe1eb;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  transition: 160ms ease;
}

.dialog-action:hover,
.dialog-action:focus-visible {
  border-color: #657184;
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.dialog-action.primary {
  border-color: rgba(255, 106, 43, 0.65);
  background: rgba(255, 106, 43, 0.14);
  color: #ffc3a3;
}

.dialog-action.primary:hover,
.dialog-action.primary:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 106, 43, 0.23);
  color: white;
}

.dialog-hint {
  margin: 16px 0 0;
  color: #748092;
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #7e8897;
  font-size: 0.78rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: 132px;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  max-width: 420px;
  justify-self: center;
  text-align: center;
}

.footer-center {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.footer-copyright {
  color: var(--text);
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-social a,
.footer-top {
  color: #b9c0cb;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-social a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-social .social-fill {
  fill: currentColor;
  stroke: none;
}

.footer-social b {
  color: var(--accent-2);
  font-weight: 600;
}

.footer-top {
  justify-self: center;
  white-space: nowrap;
}

.footer-social a:hover,
.footer-top:hover {
  color: white;
}

.back-to-top-button {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 106, 43, 0.72);
  border-radius: 999px;
  background: rgba(15, 18, 25, 0.92);
  color: #ffc1a0;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 160ms ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  background: var(--accent);
  color: white;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 13px;
  background: rgba(16, 28, 22, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  color: #bbf7d0;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 18px;
  fill: none;
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #782f1a;
  color: white;
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 861px) and (max-width: 1150px) {
  .prompt-grid[data-collection="visual"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-tools {
    grid-template-columns: 1fr;
  }

  .intro-tools .random-button,
  .intro-tools .popular-button {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .site-header,
  main {
    width: min(calc(100% - 32px), var(--max));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: center;
    width: min(calc(100% - 32px), var(--max));
    padding: 30px 0;
    text-align: center;
  }

  .footer-note {
    max-width: 520px;
  }

  .footer-social {
    flex-wrap: wrap;
  }

  .intro {
    grid-template-areas:
      "copy"
      "tools"
      "guide";
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 52px 0;
  }

  .intro-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(3.4rem, 13vw, 6rem);
  }

  .intro-guide {
    max-width: 620px;
  }

  .control-panel {
    position: relative;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0 18px;
  }

  .collection-tabs {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .collection-select-wrap {
    display: none !important;
  }

  .collection-tab {
    width: 100%;
    justify-content: space-between;
    padding: 0 12px;
  }

  .result-bar {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .result-bar-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .site-header,
  main {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-header {
    min-height: 66px;
  }

  .header-count {
    display: none;
  }

  .header-tools {
    gap: 4px;
  }

  .intro {
    gap: 30px;
    padding: 42px 0 46px;
  }

  .intro-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intro-quick-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.7rem);
    letter-spacing: -0.07em;
  }

  .intro-guide {
    gap: 14px;
    padding-top: 18px;
  }

  .guide-icon {
    width: 34px;
    height: 34px;
  }

  .intro-guide p {
    font-size: 0.95rem;
  }

  .collection-tabs {
    grid-template-columns: 1fr;
  }

  .collection-tab {
    gap: 7px;
    min-height: 46px;
    font-size: 0.76rem;
  }

  .collection-tab b {
    min-width: 28px;
    padding: 0 5px;
  }

  .collection-tab[data-collection="custom"] em {
    display: inline;
    margin-left: 4px;
  }

  .random-button,
  .popular-button {
    width: 100%;
  }

  .category-shell {
    margin-top: 18px;
  }

  .result-bar {
    min-height: 58px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .result-bar-actions,
  .sort-controls {
    width: 100%;
  }

  .result-bar-actions {
    justify-content: stretch;
  }

  .sort-select-wrap {
    flex: 1;
  }

  .sort-select {
    width: 100%;
  }

  .interaction-note {
    display: none !important;
  }

  .prompt-grid,
  .prompt-grid[data-collection="visual"],
  .prompt-grid[data-collection="film"],
  .prompt-grid[data-collection="video"] {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prompt-card {
    border-radius: 15px;
  }

  .card-body {
    padding: 16px;
  }

  .footer-inner {
    width: min(calc(100% - 24px), var(--max));
    padding: 28px 0;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }

  .modal-shell {
    align-items: center;
    padding: 12px;
  }

  .random-dialog {
    display: flex;
    width: 100%;
    max-height: min(92dvh, 760px);
    flex-direction: column;
    border-radius: 18px;
  }

  .dialog-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .random-dialog.is-film .dialog-image {
    aspect-ratio: 16 / 9;
  }

  .dialog-content {
    padding: 24px 20px 20px;
  }

  .dialog-code {
    margin-bottom: 18px;
  }

  .dialog-prompt {
    margin-bottom: 22px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .report-modal-shell {
    align-items: center;
    padding: 10px;
  }

  .report-dialog {
    width: 100%;
    max-height: 94dvh;
    padding: 24px 18px 18px;
    border-radius: 16px;
  }

  .report-dialog h2 {
    font-size: 1.25rem;
  }

  .report-reasons {
    gap: 6px;
  }

  .report-reasons label {
    min-height: 38px;
    padding: 7px 9px;
  }

  .report-actions {
    grid-template-columns: 1fr;
  }
}

/* Prompt Mixing collection and recipe pages. */
html[lang^="en"] .mix-lang-tr,
html:not([lang^="en"]) .mix-lang-en {
  display: none !important;
}

.collection-tabs {
  overflow-x: auto;
  scrollbar-color: #465165 transparent;
  scrollbar-width: thin;
}

.collection-tab {
  flex: 0 0 auto;
}

.collection-tab[data-collection="mixed"] {
  border-color: rgba(185, 131, 255, 0.72);
  background: linear-gradient(135deg, rgba(185, 131, 255, 0.12), rgba(255, 106, 43, 0.055));
  color: #eadcff;
  box-shadow: inset 0 -2px 0 rgba(185, 131, 255, 0.68), 0 0 0 1px rgba(185, 131, 255, 0.08);
}

.collection-tab[data-collection="mixed"] b {
  background: rgba(185, 131, 255, 0.16);
  color: #e6d3ff;
}

.collection-tab[data-collection="mixed"]:hover,
.collection-tab[data-collection="mixed"]:focus-visible {
  border-color: #c996ff;
  background: linear-gradient(135deg, rgba(185, 131, 255, 0.22), rgba(255, 106, 43, 0.1));
  color: white;
  box-shadow: inset 0 -2px 0 #c77cff, 0 0 18px rgba(185, 131, 255, 0.22);
  transform: none;
}

.collection-tab[data-collection="mixed"].is-active {
  border-color: #d3a6ff;
  background: linear-gradient(135deg, rgba(185, 131, 255, 0.27), rgba(255, 106, 43, 0.12));
  color: white;
  box-shadow: inset 0 -2px 0 #ca7fff, 0 0 20px rgba(185, 131, 255, 0.25);
  transform: none;
}

.mixed-mode .interaction-note > span:first-child {
  background: var(--film);
  box-shadow: 0 0 0 5px rgba(185, 131, 255, 0.1);
}

.mixed-ai-notice {
  display: grid;
  grid-template-columns: auto minmax(230px, 0.72fr) minmax(280px, 1.28fr);
  gap: 12px 24px;
  align-items: center;
  margin: 0 0 22px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 106, 43, 0.5);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(255, 106, 43, 0.12), rgba(185, 131, 255, 0.08));
  box-shadow: inset 3px 0 0 var(--accent);
}

.mixed-ai-notice[hidden] {
  display: none;
}

.mixed-ai-notice-label {
  padding: 6px 9px;
  border: 1px solid rgba(255, 178, 67, 0.42);
  border-radius: 999px;
  color: var(--accent-2);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.mixed-ai-notice strong {
  color: white;
  font-size: 0.92rem;
}

.mixed-ai-notice p {
  margin: 0;
  color: #c4cbd5;
  font-size: 0.78rem;
  line-height: 1.5;
}

.mixed-prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 390px), 1fr));
  gap: 20px;
}

/* Yalnızca Kaydettiklerim'de normal ve birleştirilmiş kartları aynı ızgaraya al. */
.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 390px), 1fr));
  gap: 20px;
}

.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) > .prompt-grid,
.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) > .mixed-prompt-grid:not([hidden]) {
  display: contents;
}

.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) .prompt-card,
.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) .mixed-prompt-card {
  height: 100%;
}

.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) .mixed-prompt-card {
  display: flex;
  flex-direction: column;
}

.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) .mixed-prompt-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.prompt-grids:has(> .prompt-grid[data-collection="saved"]:not([hidden])) .mixed-card-engagement {
  margin-top: auto;
  padding-top: 12px;
}

/* Kaydettiklerim görünümünde iki ayrı grid art arda gösterilir. */
.prompt-grid:not([data-collection="saved"]):not([hidden]) + .mixed-prompt-grid:not([hidden]) {
  margin-top: 28px;
}

.mixed-prompt-grid[hidden],
.mixed-prompt-empty[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .prompt-grid:not([data-collection="saved"]):not([hidden]) + .mixed-prompt-grid:not([hidden]) {
    margin-top: 22px;
  }
}

.mixed-prompt-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 28, 37, 0.97), rgba(14, 17, 24, 0.99));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mixed-prompt-card:hover {
  border-color: #505c70;
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.mixed-preview-toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #05070a;
  cursor: pointer;
}

.mixed-preview-toggle video,
.mixed-preview-toggle > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.mixed-preview-toggle video {
  opacity: 0;
}

.mixed-preview-toggle .mixed-preview-source {
  z-index: 1;
  opacity: 1;
}

.mixed-preview-toggle.is-playing video {
  opacity: 1;
}

.mixed-preview-toggle.is-playing .mixed-preview-source {
  opacity: 0;
}

.mixed-preview-badge {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #343d4c;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #909aaa;
  font-family: "Manrope", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.mixed-preview-badge::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--film);
  content: "";
}

.mixed-preview-state-result {
  display: none;
}

.mixed-preview-toggle.is-playing + .mixed-prompt-card-body .mixed-preview-state-source {
  display: none;
}

.mixed-preview-toggle.is-playing + .mixed-prompt-card-body .mixed-preview-state-result {
  display: inline;
}

.mixed-preview-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.76);
  color: white;
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
}

.mixed-preview-play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  content: "";
}

.mixed-preview-toggle.is-playing .mixed-preview-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
}

.mixed-prompt-card-body {
  padding: 20px;
}

.mixed-prompt-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  color: #be9aee;
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.mixed-prompt-card-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mixed-prompt-card h2 {
  margin: 14px 0 8px;
  color: white;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.mixed-prompt-card-description {
  min-height: 3.8em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.mixed-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 18px 0;
}

.mixed-ingredients span {
  padding: 6px 9px;
  border: 1px solid rgba(185, 131, 255, 0.25);
  border-radius: 8px;
  background: rgba(185, 131, 255, 0.07);
  color: #d8c3f6;
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
}

.mixed-ingredients b {
  color: var(--accent);
}

.mixed-recipe-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 106, 43, 0.5);
  border-radius: 11px;
  background: rgba(255, 106, 43, 0.08);
  color: #ffb08b;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: 160ms ease;
}

.mixed-recipe-link:hover,
.mixed-recipe-link:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 106, 43, 0.15);
  color: white;
}

.mixed-recipe-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mixed-card-engagement {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}

.mixed-card-engagement .mixed-card-feedback,
.mixed-card-engagement .feedback-buttons {
  display: contents;
}

.mixed-card-engagement .mixed-share-only {
  margin: 0;
}

.mixed-card-engagement .feedback-button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px;
}

.mixed-card-engagement .feedback-share {
  min-width: 0;
}

.mixed-card-engagement .pduy-save,
.mixed-card-engagement .prompt-report-button {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 40px;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
}

.mixed-card-engagement .prompt-report-button {
  align-self: stretch !important;
  height: auto !important;
}

.mixed-card-engagement .prompt-report-button svg {
  width: 18px;
  height: 18px;
}

.mixed-card-engagement .feedback-button[data-vote="1"] { grid-column: 1; grid-row: 1; }
.mixed-card-engagement .feedback-button[data-vote="-1"] { grid-column: 2; grid-row: 1; }
.mixed-card-engagement .pduy-save { grid-column: 3; grid-row: 1; }
.mixed-card-engagement .feedback-share { grid-column: 4; grid-row: 1; }
.mixed-card-engagement .prompt-report-button { grid-column: 5; grid-row: 1; }

.mixed-card-engagement .feedback-button[data-vote],
.mixed-card-engagement .pduy-save {
  flex-direction: column;
  gap: 2px;
}

.mixed-card-engagement .feedback-count,
.mixed-card-engagement .pduy-save-count {
  display: block;
  line-height: 1;
}

.mixed-card-engagement .feedback-share span,
.mixed-card-engagement .pduy-save-label,
.mixed-card-engagement .prompt-report-button span {
  display: none;
}

.mixed-card-engagement .prompt-report-button[hidden] {
  display: none;
}

.mixed-card-engagement .feedback-button:hover,
.mixed-card-engagement .feedback-button[aria-pressed="true"] {
  border-color: var(--film);
  background: rgba(185, 131, 255, 0.1);
  color: #e0caff;
}

.mixed-prompt-empty {
  padding: 70px 24px;
  border: 1px dashed #343d4c;
  border-radius: 18px;
  text-align: center;
}

.mixed-prompt-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.mixed-prompt-empty p {
  margin: 0;
  color: var(--muted);
}

.mixed-detail-page {
  padding: 34px 0 80px;
}

.mixed-detail-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  min-height: 56px;
  margin-bottom: 34px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
}

.mixed-detail-nav > span {
  padding: 8px 11px;
  border: 1px solid #343d4c;
  border-radius: 999px;
  color: #c7ced8;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.mixed-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
  margin-bottom: 38px;
}

.mixed-detail-hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.mixed-detail-summary {
  display: grid;
  gap: 16px;
  align-content: end;
}

.mixed-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 106, 43, 0.22), rgba(255, 178, 67, 0.1));
  color: #ffd1b8;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: 160ms ease;
}

.mixed-back-button:hover,
.mixed-back-button:focus-visible {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.mixed-detail-summary > p {
  margin: 0;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c2c9d3;
  font-size: 0.96rem;
  line-height: 1.65;
}

.mixed-ai-notice-detail {
  margin-bottom: 20px;
}

.mixed-flow-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 21, 29, 0.8);
}

.mixed-flow-map > div {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

.mixed-flow-map > div:last-child {
  border-right: 0;
}

.mixed-flow-map b {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--film));
  color: white;
  font-size: 0.86rem;
  box-shadow: 0 0 0 5px rgba(185, 131, 255, 0.08);
}

.mixed-flow-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mixed-flow-copy small {
  color: #b983ff;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.mixed-flow-copy strong {
  overflow: hidden;
  color: #edf0f5;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mixed-recipe {
  display: grid;
  gap: 20px;
}

.mixed-recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
}

.mixed-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 28, 37, 0.97), rgba(14, 17, 24, 0.99));
}

.mixed-stage > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(185, 131, 255, 0.085), rgba(255, 106, 43, 0.035));
}

.mixed-stage-title {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.mixed-stage-title > b {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--film));
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(185, 131, 255, 0.08);
}

.mixed-stage-title > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mixed-stage-title small {
  color: #c59cff;
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mixed-stage-title strong {
  color: white;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 800;
  line-height: 1.2;
}

.mixed-stage > header em {
  color: #7f8a9a;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mixed-media-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #05070a;
  cursor: zoom-in;
}

.mixed-media-zoom img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.mixed-media-zoom > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.8);
  color: white;
  font-size: 0.63rem;
  font-weight: 700;
}

.mixed-prompt-body {
  padding: 22px;
}

.mixed-prompt-role {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-2);
  font-family: "DM Mono", monospace;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.mixed-prompt-body h2 {
  margin: 0 0 14px;
  color: white;
  font-family: "DM Mono", monospace;
  font-size: clamp(1.14rem, 2vw, 1.58rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

body.quick-edit-open {
  overflow: hidden;
}

.admin-quick-edit-dialog {
  width: min(94vw, 980px);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #495469;
  border-radius: 18px;
  background: #151922;
  color: #eef1f5;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.78);
}

.admin-quick-edit-dialog::backdrop {
  background: rgba(2, 4, 8, 0.84);
  backdrop-filter: blur(7px);
}

.admin-quick-edit-shell {
  max-height: 90vh;
  overflow: auto;
}

.admin-quick-edit-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #333c4b;
  background: rgba(21, 25, 34, 0.96);
  backdrop-filter: blur(14px);
}

.admin-quick-edit-header span {
  color: var(--accent-2);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.admin-quick-edit-header h2 {
  margin: 3px 0 0;
  color: white;
  font-size: 1.25rem;
}

.admin-quick-edit-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #465164;
  border-radius: 50%;
  background: #202631;
  color: white;
  cursor: pointer;
  font-size: 1.45rem;
}

.admin-quick-edit-loading {
  margin: 0;
  padding: 52px 24px;
  color: var(--muted);
  text-align: center;
}

.admin-quick-edit-section {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-quick-edit-section[hidden] {
  display: none;
}

.admin-quick-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-quick-edit-section label,
.admin-quick-edit-media label,
.admin-quick-edit-status {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-quick-edit-section label > span,
.admin-quick-edit-media label > span,
.admin-quick-edit-status > span {
  color: #c8ced8;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-quick-edit-dialog input,
.admin-quick-edit-dialog textarea,
.admin-quick-edit-dialog select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #3c4657;
  border-radius: 9px;
  outline: none;
  background: #0f131a;
  color: #edf0f4;
  font: inherit;
  font-size: 0.82rem;
}

.admin-quick-edit-dialog textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

.admin-quick-edit-dialog input:focus,
.admin-quick-edit-dialog textarea:focus,
.admin-quick-edit-dialog select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.13);
}

.admin-quick-edit-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-quick-edit-media > button,
.admin-quick-edit-actions button,
.admin-quick-edit-actions a {
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid #465164;
  border-radius: 9px;
  background: #202631;
  color: #e7ebf1;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.admin-quick-edit-status {
  margin: 0 22px 18px;
}

.admin-quick-edit-message {
  min-height: 20px;
  margin: 0 22px 10px;
  color: #aeb7c5;
  font-size: 0.75rem;
}

.admin-quick-edit-message[data-state="success"] {
  color: #83dda3;
}

.admin-quick-edit-message[data-state="error"] {
  color: #ff9b9b;
}

.admin-quick-edit-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 15px 22px;
  border-top: 1px solid #333c4b;
  background: rgba(21, 25, 34, 0.97);
  backdrop-filter: blur(14px);
}

.admin-quick-edit-actions > a {
  margin-right: auto;
}

.admin-quick-edit-actions .primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.admin-quick-edit-form.is-busy,
.admin-quick-edit-dialog form.is-busy {
  opacity: 0.7;
}

.mixed-prompt-body > p {
  margin: 0;
  color: #bbc3ce;
  font-size: 0.87rem;
  line-height: 1.68;
  white-space: pre-wrap;
}

.mixed-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.mixed-prompt-actions button,
.mixed-prompt-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid #3a4454;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #e5e9ef;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mixed-prompt-actions button:hover,
.mixed-prompt-actions a:hover {
  border-color: rgba(255, 106, 43, 0.65);
  background: rgba(255, 106, 43, 0.1);
  color: white;
}

.mixed-note {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: rgba(255, 106, 43, 0.07);
  color: #c9d0da;
  font-size: 0.75rem;
  line-height: 1.5;
}

.mixed-note strong {
  color: var(--accent-2);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.mixed-final-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  align-items: stretch;
}

.mixed-final-media {
  position: relative;
  min-width: 0;
  background: #05070a;
}

.mixed-final-media > video,
.mixed-final-media > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 680px;
  object-fit: contain;
  background: #05070a;
}

.mixed-sound-toggle {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 178, 67, 0.72);
  border-radius: 11px;
  background: rgba(9, 11, 16, 0.88);
  color: #ffd0b7;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.mixed-sound-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.mixed-sound-toggle svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.mixed-sound-toggle .sound-wave,
.mixed-sound-toggle.is-sound-on .sound-slash,
.mixed-sound-on {
  display: none;
}

.mixed-sound-toggle.is-sound-on .sound-wave,
.mixed-sound-toggle.is-sound-on .mixed-sound-on {
  display: inline;
}

.mixed-sound-toggle.is-sound-on .mixed-sound-off {
  display: none;
}

.mixed-sound-toggle:hover,
.mixed-sound-toggle:focus-visible,
.mixed-sound-toggle.is-sound-on {
  border-color: var(--accent);
  background: rgba(255, 106, 43, 0.92);
  color: white;
}

.mixed-final-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.mixed-result-label {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.mixed-final-wrap h2 {
  margin: 14px 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.mixed-final-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.mixed-lightbox {
  width: min(94vw, 1450px);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid #465165;
  border-radius: 18px;
  background: #090b10;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
}

.mixed-lightbox::backdrop {
  background: rgba(2, 4, 7, 0.88);
  backdrop-filter: blur(8px);
}

.mixed-lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
}

.mixed-lightbox > button {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: -14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #566276;
  border-radius: 50%;
  background: #171c25;
  color: white;
  cursor: pointer;
  font-size: 1.3rem;
}

@media (max-width: 860px) {
  .mixed-ai-notice {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mixed-ai-notice-label {
    width: max-content;
    max-width: 100%;
  }

  .mixed-detail-hero,
  .mixed-recipe-row,
  .mixed-final-wrap {
    grid-template-columns: 1fr;
  }

  .mixed-flow-map {
    grid-template-columns: 1fr;
  }

  .mixed-flow-map > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mixed-flow-map > div:last-child {
    border-bottom: 0;
  }

  .mixed-final-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .mixed-prompt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mixed-detail-page {
    padding: 22px 0 54px;
  }

  .mixed-detail-nav {
    align-items: flex-start;
  }

  .mixed-detail-nav > span {
    text-align: right;
  }

  .mixed-detail-hero {
    gap: 22px;
    margin-bottom: 28px;
  }

  .mixed-detail-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .mixed-stage > header em {
    display: none;
  }

  .mixed-prompt-body {
    padding: 17px;
  }

  .mixed-prompt-actions {
    grid-template-columns: 1fr;
  }

  .mixed-final-media > video,
  .mixed-final-media > img {
    min-height: 220px;
  }

  .admin-quick-edit-dialog {
    width: 96vw;
    max-height: 94vh;
  }

  .admin-quick-edit-shell {
    max-height: 94vh;
  }

  .admin-quick-edit-grid,
  .admin-quick-edit-media {
    grid-template-columns: 1fr;
  }

  .admin-quick-edit-header,
  .admin-quick-edit-section,
  .admin-quick-edit-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-quick-edit-status,
  .admin-quick-edit-message {
    margin-right: 16px;
    margin-left: 16px;
  }

  .admin-quick-edit-actions {
    flex-wrap: wrap;
  }

  .admin-quick-edit-actions > a {
    width: 100%;
    margin-right: 0;
  }
}

@media (hover: none) {
  .visual-toggle:hover .source-image {
    opacity: 1;
  }

  .visual-toggle:hover .result-image {
    opacity: 0;
  }

  .visual-toggle:hover + .card-body .card-image-state .source-label {
    display: inline;
  }

  .visual-toggle:hover + .card-body .card-image-state .result-label {
    display: none;
  }

  .visual-toggle.is-revealed .source-image {
    opacity: 0;
  }

  .visual-toggle.is-revealed .result-image {
    opacity: 1;
  }

  .visual-toggle.is-revealed + .card-body .card-image-state .source-label {
    display: none;
  }

  .visual-toggle.is-revealed + .card-body .card-image-state .result-label {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Late cascade keeps user-selected button colors above legacy component defaults. */
.collection-tab[data-collection="visual"].is-active { border-color:var(--button-collection-visual);background:color-mix(in srgb,var(--button-collection-visual) 16%,transparent);color:color-mix(in srgb,var(--button-collection-visual) 60%,white);box-shadow:inset 0 -2px 0 var(--button-collection-visual); }
.collection-tab[data-collection="film"].is-active { border-color:var(--button-collection-film);background:color-mix(in srgb,var(--button-collection-film) 16%,transparent);color:color-mix(in srgb,var(--button-collection-film) 60%,white);box-shadow:inset 0 -2px 0 var(--button-collection-film); }
.collection-tab[data-collection="video"].is-active { border-color:var(--button-collection-video);background:color-mix(in srgb,var(--button-collection-video) 16%,transparent);color:color-mix(in srgb,var(--button-collection-video) 60%,white);box-shadow:inset 0 -2px 0 var(--button-collection-video); }
.collection-tab[data-collection="custom"],.collection-tab[data-collection="custom"].is-active { border-color:var(--button-collection-custom);background:color-mix(in srgb,var(--button-collection-custom) 16%,transparent);color:color-mix(in srgb,var(--button-collection-custom) 60%,white);box-shadow:inset 0 -2px 0 var(--button-collection-custom); }
.collection-tab[data-collection="mixed"],.collection-tab[data-collection="mixed"].is-active { border-color:var(--button-collection-mixed);background:color-mix(in srgb,var(--button-collection-mixed) 16%,transparent);color:color-mix(in srgb,var(--button-collection-mixed) 60%,white);box-shadow:inset 0 -2px 0 var(--button-collection-mixed); }
.collection-tab[data-collection="mixed"] .collection-tab-icon { background:var(--button-collection-mixed); }
.collection-tab[data-collection="visual"].is-active b { background:color-mix(in srgb,var(--button-collection-visual) 18%,transparent);color:color-mix(in srgb,var(--button-collection-visual) 58%,white); }
.collection-tab[data-collection="film"].is-active b { background:color-mix(in srgb,var(--button-collection-film) 18%,transparent);color:color-mix(in srgb,var(--button-collection-film) 58%,white); }
.collection-tab[data-collection="video"].is-active b { background:color-mix(in srgb,var(--button-collection-video) 18%,transparent);color:color-mix(in srgb,var(--button-collection-video) 58%,white); }
.collection-tab[data-collection="custom"] b { background:color-mix(in srgb,var(--button-collection-custom) 18%,transparent);color:color-mix(in srgb,var(--button-collection-custom) 58%,white); }
.collection-tab[data-collection="mixed"] b { background:color-mix(in srgb,var(--button-collection-mixed) 18%,transparent);color:color-mix(in srgb,var(--button-collection-mixed) 58%,white); }
.prompt-card[data-collection="visual"] .card-category { color:var(--button-collection-visual); }
.prompt-card[data-collection="film"] .card-category { color:var(--button-collection-film); }
.prompt-card[data-collection="video"] .card-category { color:var(--button-collection-video); }
.prompt-card[data-collection="custom"] .card-category { color:var(--button-collection-custom); }
.mixed-prompt-card .mixed-prompt-card-meta > span:first-child { color:var(--button-collection-mixed); }
.random-button { border-color:var(--button-random);background:color-mix(in srgb,var(--button-random) 13%,transparent);color:color-mix(in srgb,var(--button-random) 58%,white); }
.random-button:hover,.random-button:focus-visible { border-color:var(--button-random);background:color-mix(in srgb,var(--button-random) 22%,transparent); }
.popular-button,.popular-button.is-active { border-color:color-mix(in srgb,var(--button-popular-icon) 60%,var(--line));background:var(--button-popular-bg);color:var(--button-popular-text); }
.popular-button svg,.popular-button.is-active svg { color:var(--button-popular-icon);fill:var(--button-popular-icon);stroke:var(--button-popular-icon); }
.popular-button:hover,.popular-button:focus-visible { border-color:var(--button-popular-icon);background:color-mix(in srgb,var(--button-popular-icon) 12%,var(--button-popular-bg));color:var(--button-popular-text); }
.category-chip.is-active,.film-mode .category-chip.is-active { border-color:var(--button-category);background:color-mix(in srgb,var(--button-category) 13%,transparent);color:var(--button-category); }
.language-button:hover,.language-button.is-active { border-color:var(--button-language);background:color-mix(in srgb,var(--button-language) 12%,transparent);color:var(--button-language); }
.admin-card-edit { border-color:var(--button-edit);color:var(--button-edit); }
.admin-card-edit:hover,.admin-card-edit:focus-visible { border-color:var(--button-edit);background:var(--button-edit); }
.card-engagement .feedback-button,.card-engagement .pduy-save,.card-engagement .prompt-report-button,.mixed-card-engagement .feedback-button,.mixed-card-engagement .pduy-save,.mixed-card-engagement .prompt-report-button { background:var(--button-action-bg);color:var(--button-action-text); }
.card-engagement .feedback-button[data-vote="1"],.mixed-card-engagement .feedback-button[data-vote="1"] { color:var(--button-like); }
.card-engagement .feedback-button[data-vote="-1"],.mixed-card-engagement .feedback-button[data-vote="-1"] { color:var(--button-dislike); }
.card-engagement .feedback-share,.mixed-card-engagement .feedback-share { color:var(--button-share); }
.card-engagement .pduy-save[aria-pressed="true"],.mixed-card-engagement .pduy-save[aria-pressed="true"] { color:var(--favorite); }
.pduy-account-button,.pduy-login-action,.pduy-account-action { border-color:color-mix(in srgb,var(--button-account-bg) 65%,white)!important;background:var(--button-account-bg)!important;color:var(--button-account-text)!important; }
.pduy-account-button:hover,.pduy-account-button:focus-visible,.pduy-login-action:hover,.pduy-login-action:focus-visible,.pduy-account-action:hover,.pduy-account-action:focus-visible { border-color:color-mix(in srgb,var(--button-account-bg) 45%,white)!important;background:color-mix(in srgb,var(--button-account-bg) 84%,white)!important;color:var(--button-account-text)!important; }
.pduy-logout-action { border-color:color-mix(in srgb,var(--button-logout-text) 55%,var(--line))!important;background:var(--button-logout-bg)!important;color:var(--button-logout-text)!important; }
.pduy-logout-action:hover,.pduy-logout-action:focus-visible { border-color:var(--button-logout-text)!important;background:color-mix(in srgb,var(--button-logout-text) 13%,var(--button-logout-bg))!important;color:var(--button-logout-text)!important; }
.pduy-favorites-action { background:var(--button-saved-bg)!important;color:var(--button-saved-text)!important; }
.sort-select { background:var(--button-sort-bg);color:var(--button-sort-text); }
.load-more { background:var(--button-load-bg);color:var(--button-load-text); }
.back-to-top-button { background:var(--button-top-bg);color:var(--button-top-text); }
.dialog-action.primary,.report-submit,.pduy-dialog input[type="submit"] { background:var(--button-modal-primary-bg)!important;color:var(--button-modal-primary-text)!important;border-color:var(--button-modal-primary-bg)!important; }
.dialog-action:not(.primary),.report-cancel { background:var(--button-modal-secondary-bg);color:var(--button-modal-secondary-text); }
.card-engagement .feedback-button:hover,.card-engagement .feedback-button[aria-pressed="true"],.mixed-card-engagement .feedback-button:hover,.mixed-card-engagement .feedback-button[aria-pressed="true"] { border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--button-action-bg));color:color-mix(in srgb,var(--accent) 55%,white); }
.card-engagement .pduy-save:hover,.card-engagement .pduy-save[aria-pressed="true"],.mixed-card-engagement .pduy-save:hover,.mixed-card-engagement .pduy-save[aria-pressed="true"] { border-color:var(--favorite);background:color-mix(in srgb,var(--favorite) 12%,var(--button-action-bg));color:var(--favorite); }
.card-engagement .prompt-report-button:hover,.mixed-card-engagement .prompt-report-button:hover { background:color-mix(in srgb,var(--report-hover) 10%,var(--button-action-bg));color:var(--report-hover); }
