html.cc-live-page { --cc-live-visible-nav-height: var(--cc-live-nav-with-strip-height, var(--cc-live-nav-height)); }
html.cc-live-top { --cc-live-visible-nav-height: var(--cc-live-nav-height); }

#top.cc-live-header {
  --hero-gutter: 48px;
  padding-top: 0 !important;
}

#top.cc-live-header:has(.cc-live-hero--mobile) { --hero-gutter: 16px; }

.cc-live-desktop-stage { position: relative; }
.cc-live-desktop-stage [data-cc-model-ticker] { margin-inline: calc(-1 * var(--hero-gutter)); }

.cc-live-hero {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: calc(-1 * var(--hero-gutter));
  padding: 140px var(--hero-gutter) 84px;
  background: #0a0a0c;
  color: #f4f1ea;
}

.cc-live-hero__media, .cc-live-hero__media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cc-live-hero__media {
  z-index: -1;
  background: #101015;
}

.cc-live-hero__media::after {
  content: '';
  background: linear-gradient(180deg, rgb(10 10 12 / .38), transparent 16%, transparent 64%, rgb(10 10 12 / .88));
}

.cc-live-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .22s ease;
}

.cc-live-hero--desktop .cc-live-hero__media video { filter: brightness(1.35) saturate(1.12); }
.cc-live-hero--desktop .cc-live-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, rgb(255 61 46 / .16), transparent 14%, transparent 86%, rgb(96 140 255 / .16));
}

.cc-live-hero[data-switching] video { opacity: 0 !important; }

.cc-live-hero__copy { width: min(100%, 1480px); margin-inline: auto; }

.cc-live-hero h1 {
  margin: 0;
  color: inherit;
  font: 800 clamp(24px, 2.2vw, 32px)/1.15 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(10 10 12 / .65), 0 2px 20px rgb(10 10 12 / .8);
}

.cc-live-hero__description { margin: 8px 0 0; color: #eee7e0; font-size: 15px; line-height: 1.45; text-wrap: balance; text-shadow: 0 1px 8px rgb(10 10 12 / .85); }

.cc-live-hero__clip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid rgb(244 241 234 / .2);
  border-radius: 999px;
  background: rgb(14 15 19 / .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #f4f1ea;
  font: 600 12px/1.2 'Instrument Sans', system-ui, sans-serif;
  white-space: nowrap;
}

.cc-live-hero__clip small { font: inherit; font-weight: 500; color: rgb(244 241 234 / .7); }
.cc-live-hero__clip::before { content: ''; flex: 0 0 6px; height: 6px; border-radius: 50%; background: #ff5a47; }
.cc-live-hero--desktop .cc-live-hero__clip {
  position: absolute;
  --cc-live-badge-gap: 32px;
  top: calc(var(--cc-live-visible-nav-height, 67px) + var(--cc-live-badge-gap));
  right: var(--cc-live-badge-gap);
}

.cc-live-hero__form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "attach idea submit";
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: 620px;
  margin-top: 12px;
  padding: 6px;
  border: 1px solid rgb(244 241 234 / .2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(239 242 249 / .1), rgb(239 242 249 / .03)), rgb(16 17 21 / .5);
  text-align: start;
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 14px 32px -4px rgb(8 9 12 / .48);
}

.cc-live-hero--desktop .cc-live-hero__form:focus-within { border-color: rgb(244 241 234 / .5); box-shadow: 0 16px 34px -4px rgb(8 9 12 / .6); }
.cc-live-hero__form input[type="file"] { display: none; }
.cc-live-hero textarea {
  grid-area: idea;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 1.5em;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 16px/1.5 'Instrument Sans', sans-serif;
  resize: none;
  outline: none;
  overflow: auto;
  overflow-wrap: anywhere;
  caret-color: #ff765f;
  scrollbar-width: thin;
  scrollbar-color: rgb(244 241 234 / .38) transparent;
}
.cc-live-hero textarea::placeholder { color: #e6dce2; opacity: 1; }

.cc-live-hero button { color: inherit; cursor: pointer; font-family: inherit; }
.cc-live-hero button:focus-visible { outline: 2px solid #ff9b88; outline-offset: 2px; }

.cc-live-hero__attach {
  grid-area: attach;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(244 241 234 / .22);
  border-radius: 50%;
  background: rgb(244 241 234 / .08);
  transition: background .2s ease, border-color .2s ease;
}

.cc-live-hero__attach:hover { background: rgb(244 241 234 / .18); border-color: rgb(244 241 234 / .4); }

.cc-live-hero .cc-live-hero__submit {
  grid-area: submit;
  position: relative;
  isolation: isolate;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-inline-size: 149px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #231b1e;
  font: 700 14px/1.15 'Bricolage Grotesque', sans-serif;
  white-space: nowrap;
}

.cc-live-hero__submit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border-radius: inherit;
  background: #f3eae6;
}
.cc-live-hero__submit svg { flex: 0 0 14px; color: #b5362b; }
.cc-live-hero__submit:hover::before { background: #fff; }
.cc-live-hero__submit:disabled { opacity: .65; cursor: wait; }

.cc-live-hero__file {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 8px 0;
  border-top: 1px solid #ffffff28;
  font-size: 13px;
}
.cc-live-hero__file[data-attached] { display: flex; }
.cc-live-hero__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-live-hero__file button { flex: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.cc-live-hero__error:not(:empty) { margin: 8px 0 0; color: #ffd8d2; font-size: 13px; }
.cc-live-hero__error:empty { margin: 0; }

.cc-live-hero__tail, .cc-live-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cc-live-hero__tail { margin-top: 10px; column-gap: 16px; }

.cc-live-hero__chips button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgb(244 241 234 / .24);
  border-radius: 999px;
  background: rgb(14 15 19 / .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #efe9e4;
  font: 600 13px/1.2 'Instrument Sans', system-ui, sans-serif;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}

.cc-live-hero__chips button:hover { border-color: rgb(244 241 234 / .55); background: rgb(14 15 19 / .6); }
.cc-live-hero__chips [aria-pressed="true"] { border-color: #f3eae6; background: #f3eae6; color: #231b1e; }
.cc-live-hero__trust {
  margin: 0;
  color: #f4f1ea;
  font: 500 13px/1.4 'Instrument Sans', system-ui, sans-serif;
  text-shadow: 0 1px 2px rgb(10 10 12 / .8), 0 1px 12px rgb(10 10 12 / .9);
}

.cc-live-hero--mobile { padding: 88px 16px 22px; }
.cc-live-hero--mobile .cc-live-hero__media::after {
  background: linear-gradient(180deg, rgb(10 10 12 / .4), transparent 16%, transparent 40%, rgb(10 10 12 / .78) 68%, rgb(10 10 12 / .94));
}
.cc-live-hero--mobile .cc-live-hero__media video { object-position: center 38%; }
.cc-live-hero--mobile h1 {
  margin-top: 12px;
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.09;
  text-shadow: 0 2px 14px rgb(10 10 12 / .7);
}
.cc-live-hero--mobile .cc-live-hero__form {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "idea idea" "attach submit";
  margin-top: 16px;
  padding: 14px 10px 10px 14px;
  border-color: rgb(245 248 255 / .24);
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(245 248 255 / .1), rgb(245 248 255 / .03)), rgb(16 17 21 / .55);
  box-shadow: 0 8px 22px -8px rgb(0 0 0 / .23);
}
.cc-live-hero--mobile .cc-live-hero__form:focus-within { box-shadow: 0 8px 22px -8px rgb(0 0 0 / .3); }
.cc-live-hero--mobile textarea { min-height: 3em; height: 3em; max-height: 6em; }
@supports (field-sizing: content) {
  .cc-live-hero--mobile textarea { field-sizing: content; height: auto; }
}
.cc-live-hero--mobile .cc-live-hero__attach { width: 44px; height: 44px; }
.cc-live-hero--mobile .cc-live-hero__submit { max-inline-size: none; padding-inline: 16px; }
.cc-live-hero--mobile .cc-live-hero__tail { display: block; margin-top: 12px; }
.cc-live-hero--mobile .cc-live-hero__chips {
  flex-wrap: nowrap;
  margin-inline: -16px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cc-live-hero--mobile .cc-live-hero__chips::-webkit-scrollbar { display: none; }
.cc-live-hero--mobile .cc-live-hero__chips button { flex: none; min-height: 40px; padding: 8px 14px; font-size: 14px; }
.cc-live-hero--mobile .cc-live-hero__chips button:focus-visible { outline-offset: -3px; }
.cc-live-hero--mobile .cc-live-hero__trust {
  margin-top: 12px;
  color: rgb(244 241 234 / .78);
  font-size: 12.5px;
  text-shadow: 0 1px 8px rgb(10 10 12 / .8);
}

html.cc-live-top nav:has(.clipchat-academy-marquee--landing) .clipchat-academy-marquee--landing {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .38s ease, visibility 0s .38s;
}
html.cc-live-page .clipchat-academy-marquee--landing { transition: opacity .38s ease, transform .46s ease; }
.cc-live-nav {
  padding-block: 10px !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.cc-live-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .025)), rgb(15 17 22 / .48);
  border-bottom: 1px solid rgb(255 255 255 / .13);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 24px rgb(0 0 0 / .12);
  opacity: 0;
  transition: opacity .38s ease;
}

html.cc-live-page:not(.cc-live-top) .cc-live-nav::before { opacity: 1; }
.cc-live-nav:has(+ [data-clipchat-menu]:not(.is-hidden)) { background: #0a0a0c !important; }
.cc-live-nav:has(+ [data-clipchat-menu]:not(.is-hidden))::before {
  opacity: 1;
  background: #0a0a0c;
}

.cc-live-nav + [data-clipchat-menu] {
  top: var(--cc-live-visible-nav-height, 65px) !important;
  padding-top: 12px !important;
  background: #0a0a0c !important;
}

.cc-live-nav > a:first-child { text-shadow: 0 1px 8px rgb(0 0 0 / .65); }

.cc-live-nav .v5-signin {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px !important;
  border: 1px solid rgb(255 255 255 / .8) !important;
  border-radius: 999px !important;
  background: #f5f2ef;
  color: #1b1c20 !important;
  font: 700 14px/1 'Instrument Sans', sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 5px 16px rgb(0 0 0 / .16);
}

.cc-live-nav > button {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border-color: rgb(255 255 255 / .4) !important;
  color: #fff !important;
  background: rgb(12 15 20 / .6) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 5px 16px rgb(0 0 0 / .16);
}

.cc-live-nav :is(.v5-signin, button):focus-visible { outline: 2px solid #ff8c74; outline-offset: 3px; }

.cc-live-suno { margin: 12px 0 0; text-align: center; font-size: 13px; }
.cc-live-suno a { color: var(--dim); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .cc-live-hero__media video,
  .cc-live-nav::before,
  html.cc-live-page .clipchat-academy-marquee--landing,
  html.cc-live-top .clipchat-academy-marquee--landing { transition: none; }
}
