/* Stock footage marketplace (/stock, /stock/{id}), creator studio (/my-stock) and creator earnings (/my-earnings) */

/* ---- hero + search ---- */
.et-stk-hero {
  position: relative;
  margin: 0 0 18px;
  padding: 34px 28px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
  color: #fff;
}
.et-stk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 45%);
  pointer-events: none;
}
.et-stk-hero__copy { position: relative; z-index: 1; max-width: 760px; }
#html .et-stk-hero h1 { margin: 4px 0 8px; color: #fff !important; font: 800 clamp(24px, 3.4vw, 36px)/1.15 var(--et-font, inherit); }
.et-stk-hero p { margin: 0 0 16px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.et-stk-hero .et-lms-kicker { color: #c7d2fe; }
.et-stk-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
}
.et-stk-search .fa { color: #6b7280; }
.et-stk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #111827; font-size: 15px; padding: 8px 4px; }
#html .et-stk-search .btn { border-radius: 999px; padding: 9px 20px; background: #6366F1; border-color: #6366F1; color: #fff; }
#html .et-stk-search .btn:hover, #html .et-stk-search .btn:focus { background: #4F46E5; border-color: #4F46E5; }
#html .et-stk-hero__sell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- chips + filters ---- */
.et-stk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
#html .et-stk-chip {
  padding: 7px 14px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 999px;
  background: var(--et-surface, #fff);
  color: var(--et-text, #111827);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
#html .et-stk-chip:hover { border-color: #6366F1; color: #6366F1; }
#html .et-stk-chip.is-on { background: #6366F1; border-color: #6366F1; color: #fff; }
.et-stk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.et-stk-filters .form-control { width: auto; min-width: 150px; max-width: 100%; height: 38px; border-radius: 10px; }
.et-stk-count { margin: 4px 0 12px; color: var(--et-text-secondary, #6b7280); font-size: 14px; }

/* ---- grid + cards ---- */
.et-stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.et-stk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  background: var(--et-surface, #fff);
  transition: box-shadow .2s, transform .2s;
}
.et-stk-card:hover { box-shadow: 0 10px 26px rgba(15, 23, 42, .12); transform: translateY(-2px); }
.et-stk-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0f172a; overflow: hidden; }
.et-stk-card__media img, .et-stk-card__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.et-stk-card__vid { z-index: 1; }
.et-stk-card__noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #1e293b, #334155); }
.et-stk-card__src, .et-stk-card__meta {
  position: absolute;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font: 600 11px/1.5 var(--et-font, inherit);
  letter-spacing: .02em;
}
.et-stk-card__src { top: 8px; left: 8px; }
.et-stk-card__src.is-creator { background: #6366F1; }
.et-stk-card__meta { right: 8px; bottom: 8px; }
.et-stk-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
#html .et-stk-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--et-text, #111827);
  font: 600 14px/1.35 var(--et-font, inherit);
  text-decoration: none;
  overflow-wrap: anywhere;
}
#html .et-stk-card__title:hover { color: #6366F1; }
.et-stk-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.et-stk-card__price { font-weight: 700; color: var(--et-text, #111827); font-size: 14px; }
.et-stk-card__price.is-free { color: #059669; }
.et-stk-card__excl { padding: 2px 8px; border-radius: 999px; background: rgba(99, 102, 241, .12); color: #4F46E5; font-size: 11px; font-weight: 700; }

/* watermark over creator previews */
.et-stk-mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Ctext x='10' y='70' transform='rotate(-18 110 60)' font-family='Arial,Helvetica,sans-serif' font-size='22' font-weight='700' fill='white' fill-opacity='.28'%3Eelsetube%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
}

.et-stk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 6px; color: var(--et-text-secondary, #6b7280); }
.et-stk-empty { padding: 50px 20px; text-align: center; color: var(--et-text-secondary, #6b7280); }
.et-stk-empty .fa { font-size: 40px; color: #a5b4fc; }
.et-stk-empty p { margin: 12px auto 16px; max-width: 520px; font-size: 15px; }
.et-stk-disclosure { margin: 18px 0 0; color: var(--et-text-secondary, #6b7280); font-size: 12px; }

/* ---- clip page ---- */
.et-stk-crumbs { margin: 0 0 10px; font-size: 13px; color: var(--et-text-secondary, #6b7280); }
#html .et-stk-crumbs a { color: var(--et-text-secondary, #6b7280); }
#html .et-stk-crumbs a:hover { color: #6366F1; }
.et-stk-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.et-stk-player { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.et-stk-player video, .et-stk-player img { width: 100%; height: 100%; object-fit: contain; display: block; }
.et-stk-player.is-native .et-stk-mark { bottom: 48px; }
#html .et-stk-detail__title { margin: 16px 0 4px; color: var(--et-text, #111827); font: 700 22px/1.3 var(--et-font, inherit); overflow-wrap: anywhere; }
.et-stk-detail__by { margin: 0 0 10px; color: var(--et-text-secondary, #6b7280); font-size: 14px; }
#html .et-stk-detail__by a { color: #6366F1; font-weight: 600; }
.et-stk-detail__desc { color: var(--et-text, #111827); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.et-stk-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.et-stk-specs > div { padding: 10px 12px; border: 1px solid var(--et-line, #e5e7eb); border-radius: 10px; background: var(--et-surface, #fff); }
.et-stk-specs dt { margin: 0 0 2px; color: var(--et-text-secondary, #6b7280); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.et-stk-specs dd { margin: 0; color: var(--et-text, #111827); font-size: 14px; font-weight: 600; }
.et-stk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
#html .et-stk-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, .08);
  color: #4F46E5;
  font-size: 12px;
  text-decoration: none;
}
#html .et-stk-tags a:hover { background: #6366F1; color: #fff; }
.et-stk-buy {
  position: sticky;
  top: 80px;
  padding: 18px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 16px;
  background: var(--et-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
#html .et-stk-buy h2 { margin: 0 0 12px; color: var(--et-text, #111827); font: 700 18px/1.3 var(--et-font, inherit); }
.et-stk-buy p { color: var(--et-text-secondary, #6b7280); font-size: 14px; }
.et-stk-buy__price b { color: var(--et-text, #111827); font-size: 22px; }
#html .et-stk-buy .btn-main, #html .et-stk-search .btn-main {
  background: #6366F1;
  border-color: #6366F1;
  color: #fff;
}
#html .et-stk-buy .btn-main:hover, #html .et-stk-buy .btn-main:focus { background: #4F46E5; border-color: #4F46E5; }
.et-stk-buy .btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border-radius: 10px; font-weight: 700; white-space: normal; }
.et-stk-lic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1.5px solid var(--et-line, #e5e7eb);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 400;
}
.et-stk-lic:has(input:checked) { border-color: #6366F1; background: rgba(99, 102, 241, .06); }
.et-stk-lic input { margin-top: 3px; accent-color: #6366F1; }
.et-stk-lic__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.et-stk-lic__body b { color: var(--et-text, #111827); font-size: 14px; }
.et-stk-lic__body small { color: var(--et-text-secondary, #6b7280); font-size: 12px; line-height: 1.4; }
.et-stk-lic__price { color: var(--et-text, #111827); font-weight: 800; font-size: 16px; white-space: nowrap; }
.et-stk-wallet { margin: 10px 0 0; font-size: 13px; }
#html .et-stk-wallet a { color: #6366F1; font-weight: 600; }
.et-stk-msg { min-height: 1em; margin: 8px 0 0; font-size: 13px; color: #059669; }
.et-stk-msg.is-err { color: #EF4444; }
#html .et-stk-msg a { color: #6366F1; font-weight: 600; }
.et-stk-owned { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 0; }
.et-stk-owned:empty { display: none; }
.et-stk-dl { margin-top: 6px; }
.et-stk-licid { display: block; color: var(--et-text-secondary, #6b7280); font-size: 12px; text-align: center; }
.et-stk-promise { margin: 14px 0 0; padding: 0; list-style: none; color: var(--et-text-secondary, #6b7280); font-size: 13px; }
.et-stk-promise li { margin: 6px 0; }
.et-stk-promise .fa { color: #059669; margin-right: 6px; }
#html .et-stk-related__title { margin: 30px 0 12px; color: var(--et-text, #111827); font: 700 18px/1.3 var(--et-font, inherit); }

/* ---- creator studio ---- */
.et-stk-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--et-line, #e5e7eb); }
#html .et-stk-tabs a {
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: var(--et-text-secondary, #6b7280);
  font-weight: 600;
  text-decoration: none;
}
#html .et-stk-tabs a:hover { color: var(--et-text, #111827); }
#html .et-stk-tabs a.is-on { border-bottom-color: #6366F1; color: #6366F1; }
.et-stk-list { display: flex; flex-direction: column; gap: 10px; }
.et-stk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 12px;
  background: var(--et-surface, #fff);
}
.et-stk-row img { flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #0f172a; }
.et-stk-row__body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
#html .et-stk-row__body b { color: var(--et-text, #111827); overflow-wrap: anywhere; }
.et-stk-row__body small { color: var(--et-text-secondary, #6b7280); }
.et-stk-row__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.et-stk-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.et-stk-badge.is-live { background: rgba(5, 150, 105, .12); color: #059669; }
.et-stk-badge.is-wait { background: rgba(245, 158, 11, .14); color: #b45309; }
.et-stk-badge.is-no { background: rgba(239, 68, 68, .12); color: #DC2626; }
.et-stk-badge.is-off { background: rgba(107, 114, 128, .14); color: #4b5563; }
.et-stk-sell h2 { margin: 22px 0 8px; color: var(--et-text, #111827); font: 700 17px/1.3 var(--et-font, inherit); }
.et-stk-hint { color: var(--et-text-secondary, #6b7280); font-size: 13px; }
#html .et-stk-hint a { color: #6366F1; }
.et-stk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.et-stk-pick__item {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 2px solid var(--et-line, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  font-weight: 400;
  background: var(--et-surface, #fff);
}
.et-stk-pick__item input { position: absolute; top: 8px; left: 8px; z-index: 1; width: 18px; height: 18px; accent-color: #6366F1; }
.et-stk-pick__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0f172a; }
.et-stk-pick__item span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; min-width: 0; }
.et-stk-pick__item b { overflow: hidden; color: var(--et-text, #111827); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.et-stk-pick__item small { color: var(--et-text-secondary, #6b7280); }
.et-stk-pick__item:has(input:checked) { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.et-stk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.et-stk-field { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--et-text, #111827); font-size: 13px; font-weight: 600; }
.et-stk-field small { color: var(--et-text-secondary, #6b7280); font-weight: 400; }
.et-stk-field.is-wide, .et-stk-check.is-wide { grid-column: 1 / -1; }
.et-stk-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--et-line, #e5e7eb); border-radius: 10px; color: var(--et-text, #111827); font-size: 13px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.et-stk-check input { margin-top: 2px; accent-color: #6366F1; }
.et-stk-sell__foot { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
#html .et-stk-sell__foot .btn-main, #html .et-stk-empty .btn-main { background: #6366F1; border-color: #6366F1; color: #fff; }
#html .et-stk-sell__foot .btn-main:hover, #html .et-stk-empty .btn-main:hover { background: #4F46E5; border-color: #4F46E5; }
.et-stk-sell__foot .et-stk-msg { margin: 0; }

/* ---- earnings ---- */
.et-rev-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#html .et-rev-hero__actions .btn-main { background: #6366F1; border-color: #6366F1; color: #fff; }
#html .et-rev-hero__actions .btn-main:hover { background: #4F46E5; border-color: #4F46E5; }
.et-rev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.et-rev-card { padding: 16px; border: 1px solid var(--et-line, #e5e7eb); border-radius: 14px; background: var(--et-surface, #fff); }
.et-rev-card small { display: block; color: var(--et-text-secondary, #6b7280); font-size: 13px; font-weight: 600; }
.et-rev-card b { display: block; margin-top: 4px; color: var(--et-text, #111827); font-size: 24px; font-weight: 800; }
.et-rev-card.is-main { border-color: #6366F1; background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(99, 102, 241, .02)); }
.et-rev-card.is-main b { color: #4F46E5; }
.et-rev-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.et-rev-box { margin: 0 0 16px; padding: 16px; border: 1px solid var(--et-line, #e5e7eb); border-radius: 14px; background: var(--et-surface, #fff); min-width: 0; }
#html .et-rev-box h2 { margin: 0 0 12px; color: var(--et-text, #111827); font: 700 17px/1.3 var(--et-font, inherit); }
.et-rev-note { color: var(--et-text, #111827); }
.et-rev-level { margin: 0 0 14px; }
.et-rev-level__head { display: flex; justify-content: space-between; gap: 8px; color: var(--et-text, #111827); font-size: 14px; }
.et-rev-level__head span { color: #4F46E5; font-weight: 700; }
.et-rev-bar { height: 8px; margin: 8px 0 6px; border-radius: 999px; background: var(--et-line, #e5e7eb); overflow: hidden; }
.et-rev-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366F1, #8b5cf6); }
.et-rev-level small { color: var(--et-text-secondary, #6b7280); }
.et-rev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.et-rev-table th { padding: 8px 10px; border-bottom: 1px solid var(--et-line, #e5e7eb); color: var(--et-text-secondary, #6b7280); font-size: 12px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .03em; }
.et-rev-table td { padding: 9px 10px; border-bottom: 1px solid var(--et-line, #e5e7eb); color: var(--et-text, #111827); vertical-align: top; }
.et-rev-table tr:last-child td { border-bottom: 0; }
.et-rev-st.is-0 { color: #b45309; }
.et-rev-st.is-1 { color: #059669; }
.et-rev-st.is-2 { color: #DC2626; }
.et-rev-chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 22px; }
.et-rev-chart__col { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.et-rev-chart__col i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #818cf8, #6366F1); }
.et-rev-chart__col span { margin-bottom: 4px; color: var(--et-text-secondary, #6b7280); font-size: 11px; white-space: nowrap; }
.et-rev-chart__col small { margin-top: 6px; color: var(--et-text-secondary, #6b7280); font-size: 12px; font-weight: 600; }

/* ---- night mode ---- */
html.et-night .et-stk-search { background: #1f2937; }
html.et-night .et-stk-search input { color: #f9fafb; }
html.et-night .et-stk-card__excl, html.et-night .et-stk-tags a { color: #a5b4fc; }
html.et-night .et-rev-card.is-main b, html.et-night .et-rev-level__head span { color: #a5b4fc; }
html.et-night .et-stk-badge.is-wait { color: #fbbf24; }
html.et-night .et-stk-badge.is-off { color: #d1d5db; }

/* ---- responsive ---- */
@media (max-width: 991px) {
  .et-stk-detail__grid, .et-rev-grid { grid-template-columns: 1fr; }
  .et-stk-buy { position: static; }
}
@media (max-width: 600px) {
  .et-stk-hero { padding: 24px 16px; border-radius: 14px; }
  .et-stk-search { flex-wrap: wrap; border-radius: 14px; padding: 8px; }
  .et-stk-search input { flex-basis: calc(100% - 30px); }
  #html .et-stk-search .btn { width: 100%; }
  .et-stk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .et-stk-filters .form-control { flex: 1 1 140px; min-width: 0; }
  .et-stk-form { grid-template-columns: 1fr; }
  .et-stk-row { flex-wrap: wrap; }
  .et-stk-row img { width: 100px; }
  .et-stk-row__acts { width: 100%; }
  .et-rev-chart { gap: 4px; }
  .et-rev-chart__col span { display: none; }
}
