:root {
  --home-ink: #11162a;
  --home-muted: #65708d;
  --home-line: #e4e8f1;
  --home-soft: #f8f9fc;
  --home-pink: #f42887;
  --home-blue: #2584f6;
  --home-shadow: 0 8px 30px rgba(54, 68, 104, 0.07);
}

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

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) {
  background: #fbfcfe;
  color: var(--home-ink);
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-header {
  position: relative;
  z-index: 50;
  height: 90px;
  border-bottom: 1px solid #eef0f5;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
  display: grid;
  grid-template-columns: 156px minmax(260px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: min(1540px, calc(100% - 38px));
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand {
  display: block;
  width: 150px;
  height: auto;
  color: transparent;
  background: none;
  overflow: visible;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand img {
  display: block;
  width: 100%;
  height: auto;
}

.home-header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: #fff;
  color: #263555;
}

.home-header-search > .material-symbols-rounded {
  flex: 0 0 auto;
  margin-right: 9px;
  font-size: 21px;
}

.home-header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--home-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.home-header-search input::placeholder {
  color: #687493;
  opacity: 1;
}

.home-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: min(520px, 88vw);
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 43, 75, 0.16);
}

.home-search-results a,
.home-search-results p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--home-ink);
  text-decoration: none;
}

.home-search-results a:hover,
.home-search-results a:focus-visible {
  background: var(--home-soft);
}

.home-search-results strong {
  font-size: 13px;
  line-height: 1.45;
}

.home-search-results span {
  color: var(--home-muted);
  font-size: 11px;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.5vw, 26px);
  min-width: 0;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav a,
body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav button {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  background: transparent;
  color: #151a29;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-login {
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid #f0b3d0;
  border-radius: 8px;
  background: #fff;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-register {
  min-height: 45px;
  padding: 0 19px;
  border-radius: 8px;
  background: linear-gradient(105deg, #fb147d 0%, #9b4de8 50%, #1498f6 100%);
  box-shadow: 0 7px 18px rgba(72, 93, 232, 0.2);
  color: #fff;
}

body.is-authenticated:not(.is-dashboard-view):not(.is-public-view) .nav-register {
  display: none;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-logout {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-logout[hidden] {
  display: none;
}

.nav-logout-label {
  display: none;
}

.home-mobile-search-button {
  display: none;
}

#marketingPage.casta-lp {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #fbfcfe;
}

#marketingPage.casta-lp::before,
#marketingPage.casta-lp::after {
  display: none;
  content: none;
}

.home-portal {
  --home-weight-display: 600;
  --home-weight-emphasis: 500;
  --home-weight-support: 400;
  width: min(1568px, calc(100% - 22px));
  margin: 0 auto;
  padding: 12px 0 42px;
}

.home-panel {
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 14px rgba(45, 60, 94, 0.025);
}

.home-top-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.46fr) minmax(590px, 0.54fr);
  gap: 20px;
  align-items: stretch;
}

.home-media-panel {
  display: flex;
  flex-direction: column;
  min-height: 656px;
  overflow: hidden;
  padding: 0 22px 17px;
}

.home-media-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 0 auto;
  height: 66px;
  border-bottom: 1px solid var(--home-line);
}

.home-media-tabs button {
  position: relative;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #35415f;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--home-weight-emphasis);
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.home-media-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.home-media-tabs button.is-active {
  color: #ee1d71;
}

.home-media-tabs button.is-active::after {
  background: #ee2d78;
}

.home-media-list {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 0 8px;
}

.home-media-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 65px;
  padding: 7px 0;
  color: var(--home-ink);
  text-decoration: none;
}

.home-media-row img {
  display: block;
  width: 70px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
  background: #eef1f7;
}

.home-media-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: #131725;
  font-size: 13px;
  font-weight: var(--home-weight-emphasis);
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-media-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  color: #65708e;
  font-size: 10.5px;
  font-weight: var(--home-weight-support);
}

.home-media-row span i {
  font-style: normal;
}

.home-media-empty,
.home-loading {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: 26px;
  color: var(--home-muted);
  text-align: center;
}

.home-media-empty img {
  width: min(230px, 70%);
  margin-bottom: 18px;
  border-radius: 8px;
}

.home-media-empty strong {
  color: var(--home-ink);
  font-size: 16px;
  font-weight: var(--home-weight-emphasis);
}

.home-media-empty p,
.home-loading {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.75;
}

.home-more-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 1px;
  min-height: 30px;
  color: #51607f;
  font-size: 11px;
  font-weight: var(--home-weight-emphasis);
  text-decoration: none;
}

.home-more-link .material-symbols-rounded,
.home-section-heading .material-symbols-rounded {
  font-size: 18px;
}

.home-top-side {
  display: grid;
  grid-template-rows: 310px 332px;
  gap: 14px;
  min-width: 0;
}

.home-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  min-width: 0;
  background: #fff;
}

.home-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 76% 52%, rgba(228, 233, 255, 0.45), transparent 46%);
}

.home-promo-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 18px 30px 40px;
}

.home-promo-copy h2 {
  margin: 0;
  color: #111629;
  font-size: clamp(27px, 2.5vw, 40px);
  font-weight: var(--home-weight-display);
  letter-spacing: 0.01em;
  line-height: 1.34;
}

.home-promo-copy h2 span {
  color: #ed1980;
}

.home-promo-copy p {
  margin: 20px 0 0;
  color: #54617e;
  font-size: 13px;
  font-weight: var(--home-weight-support);
}

.home-promo-copy button {
  min-width: 205px;
  min-height: 51px;
  margin-top: 34px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(105deg, #fb147d 0%, #984de8 50%, #1599f7 100%);
  box-shadow: 0 8px 20px rgba(74, 87, 226, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--home-weight-emphasis);
  cursor: pointer;
}

.home-promo-images {
  position: relative;
  min-width: 0;
  height: 100%;
}

.home-promo-images img {
  position: absolute;
  top: 18px;
  display: block;
  width: 162px;
  height: 350px;
  border: 1px solid #edf0f6;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--home-shadow);
}

.home-promo-images img:first-child {
  left: 6%;
  transform: rotate(-5deg);
}

.home-promo-images img:last-child {
  right: 7%;
  transform: rotate(4deg);
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-section-heading h2 {
  margin: 0;
  color: #111625;
  font-size: 18px;
  font-weight: var(--home-weight-emphasis);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.home-section-heading a,
.home-section-heading button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #51607f;
  font-family: inherit;
  font-size: 11px;
  font-weight: var(--home-weight-emphasis);
  text-decoration: none;
  cursor: pointer;
}

.home-creator-ranking {
  padding: 17px 28px 15px;
  overflow: hidden;
}

.home-creator-ranking-list {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.home-creator-rank-row {
  display: grid;
  grid-template-columns: 22px 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 29px;
  color: var(--home-ink);
  text-decoration: none;
}

.home-creator-rank-row > b {
  color: #161a27;
  font-size: 12px;
  font-weight: var(--home-weight-emphasis);
  text-align: center;
}

.home-creator-rank-row:nth-child(-n + 3) > b {
  color: #ed246a;
}

.home-creator-rank-row img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
}

.home-creator-rank-row strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: var(--home-weight-emphasis);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-rank-row em {
  color: #f02969;
  font-size: 15px;
  font-style: normal;
}

.home-creator-rank-row.is-down em {
  color: #2484ef;
}

.home-video-ranking {
  margin-top: 18px;
  padding: 12px 20px 16px;
}

.home-video-ranking-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.home-video-card {
  position: relative;
  display: grid;
  min-width: 0;
  color: var(--home-ink);
  text-decoration: none;
}

.home-video-card .home-video-rank {
  position: absolute;
  top: -2px;
  left: -12px;
  z-index: 2;
  color: #151a28;
  font-size: 25px;
  font-weight: 400;
}

.home-video-card:nth-child(1) .home-video-rank {
  color: #ed225f;
}

.home-video-card:nth-child(2) .home-video-rank {
  color: #1679e5;
}

.home-video-card:nth-child(3) .home-video-rank {
  color: #dd2d57;
}

.home-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.8;
  margin-left: 27px;
  border-radius: 7px;
  background: #edf0f5;
}

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

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav > a {
    position: relative;
    background-image: none;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav > a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.26s ease;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav > a:hover::after,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav > a:focus-visible::after {
    transform: scaleX(1);
  }

  body:not(.is-dashboard-view) .site-footer .footer-inner > nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.26s ease, color 0.2s ease;
  }

  body:not(.is-dashboard-view) .site-footer .footer-inner > nav a:hover,
  body:not(.is-dashboard-view) .site-footer .footer-inner > nav a:focus-visible {
    background-size: 100% 1px;
  }

  .home-media-row strong {
    width: fit-content;
    max-width: 100%;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.26s ease;
  }

  .home-media-row:hover strong,
  .home-media-row:focus-visible strong {
    background-size: 100% 1px;
  }

  .home-creator-rank-row {
    margin-inline: -5px;
    padding-inline: 5px;
    border-radius: 6px;
    transition: background-color 0.22s ease;
  }

  .home-creator-rank-row:hover,
  .home-creator-rank-row:focus-visible,
  .home-creator-pick-card:hover,
  .home-creator-pick-card:focus-visible {
    background-color: rgba(244, 40, 135, 0.055);
  }

  .home-creator-pick-card {
    transition: background-color 0.22s ease;
  }

  .home-video-thumb img {
    transition: transform 0.25s ease;
  }

  .home-video-card:hover .home-video-thumb img,
  .home-video-card:focus-visible .home-video-thumb img {
    transform: scale(1.025);
  }
}

.home-video-thumb span {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(15, 18, 26, 0.86);
  color: #fff;
  font-size: 9px;
  font-weight: var(--home-weight-emphasis);
}

.home-video-card strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0 27px;
  color: #141824;
  font-size: 12px;
  font-weight: var(--home-weight-emphasis);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-video-card small {
  overflow: hidden;
  margin: 3px 0 0 27px;
  color: #69738e;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-card small:last-child {
  color: #526184;
  font-weight: var(--home-weight-support);
}

.home-creator-pick {
  min-height: 178px;
  margin-top: 14px;
  padding: 13px 20px 17px;
}

.home-creator-pick-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 9px;
}

.home-creator-pick-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0 12px;
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #e8ebf2;
  border-radius: 8px;
  color: var(--home-ink);
  text-decoration: none;
}

.home-creator-pick-card img {
  grid-row: 1 / 4;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
}

.home-creator-pick-card strong {
  overflow: hidden;
  align-self: end;
  font-size: 13px;
  font-weight: var(--home-weight-emphasis);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-pick-card span {
  overflow: hidden;
  color: #75809a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-creator-pick-card small {
  align-self: start;
  margin-top: 5px;
  color: #ed286f;
  font-size: 10px;
  font-weight: var(--home-weight-emphasis);
}

.home-tools {
  margin-top: 14px;
  padding: 10px 20px 14px;
}

.home-tool-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.home-tool-list a,
.home-tool-list button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-tool-list .material-symbols-rounded {
  grid-row: 1 / 3;
  color: #ed2974;
  font-size: 38px;
}

.home-tool-list > :nth-child(2) .material-symbols-rounded,
.home-tool-list > :nth-child(5) .material-symbols-rounded {
  color: #9255ee;
}

.home-tool-list > :nth-child(3) .material-symbols-rounded {
  color: #2488f1;
}

.home-tool-list > :nth-child(4) .material-symbols-rounded {
  color: #ef3161;
}

.home-tool-list strong {
  align-self: end;
  font-size: 12px;
  font-weight: var(--home-weight-emphasis);
}

#marketingPage.casta-lp .home-promo-device-demo strong,
#marketingPage.casta-lp .home-promo-device-demo b {
  font-weight: var(--home-weight-emphasis);
}

.home-tool-list small {
  align-self: start;
  color: #6e7891;
  font-size: 9.5px;
}

body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-footer {
  border-top: 1px solid var(--home-line);
  background: #fff;
}

@media (max-width: 1260px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
    grid-template-columns: 140px minmax(220px, 320px) minmax(0, 1fr);
    gap: 18px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav {
    gap: 13px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav a,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav button {
    font-size: 11px;
  }

  .home-promo {
    grid-template-columns: minmax(245px, 0.92fr) minmax(320px, 1.08fr);
  }

  .home-promo-images img {
    width: 146px;
  }
}

@media (max-width: 980px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-header {
    height: 88px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
    position: relative;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    width: min(100% - 36px, 620px);
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand {
    width: 130px;
    margin-right: auto;
  }

  .home-mobile-search-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #14203c;
  }

  .home-mobile-search-button .material-symbols-rounded {
    font-size: 31px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .mobile-menu-button {
    position: relative;
    top: auto;
    right: auto;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 7px;
    border: 0;
    background: transparent;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 0;
    border-radius: 2px;
    background: #13203d;
  }

  .home-header-search {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    z-index: 80;
    display: none;
    height: 48px;
    box-shadow: var(--home-shadow);
  }

  body.is-home-search-open .home-header-search {
    display: flex;
  }

  .home-search-results {
    width: 100%;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    z-index: 75;
    display: none !important;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--home-shadow);
  }

  body.is-mobile-menu-open:not(.is-dashboard-view):not(.is-public-view) .nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav a,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font-size: 12px;
  }

  .home-top-grid {
    grid-template-columns: 1fr;
  }

  .home-top-side {
    grid-template-rows: 290px 280px;
  }

  .home-creator-rank-row:nth-child(n + 6) {
    display: none;
  }

  .home-video-ranking-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-video-card:nth-child(n + 4) {
    display: none;
  }

  .home-creator-pick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) {
    padding-top: 20px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-header {
    width: min(100% - 40px, 416px);
    height: 88px;
    margin: 0 auto;
    border: 1px solid var(--home-line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #fff;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
    width: calc(100% - 128px);
    margin-right: auto;
    margin-left: clamp(55px, 15.1vw, 69px);
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand {
    width: 128px;
  }

  .home-portal {
    width: min(100% - 40px, 416px);
    padding: 0 0 30px;
  }

  .home-panel {
    border-radius: 9px;
    box-shadow: 0 3px 16px rgba(46, 60, 91, 0.035);
  }

  .home-top-grid {
    gap: 13px;
  }

  .home-media-panel {
    min-height: 666px;
    border-radius: 0 0 9px 9px;
    padding: 0 17px 14px;
  }

  .home-media-tabs {
    height: 61px;
  }

  .home-media-tabs button {
    font-size: 10.5px;
  }

  .home-media-list {
    padding-top: 12px;
  }

  .home-media-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    min-height: 63px;
    padding: 6px 0;
  }

  .home-media-row img {
    width: 66px;
    height: 52px;
  }

  .home-media-row strong {
    font-size: 12.5px;
  }

  .home-media-row span {
    gap: 8px;
    font-size: 9.5px;
  }

  .home-media-empty {
    padding: 18px 10px;
  }

  .home-media-empty img {
    width: 200px;
  }

  .home-more-link {
    color: #147fe7;
    font-size: 12px;
  }

  .home-top-side {
    grid-template-rows: 215px 245px auto;
    gap: 13px;
  }

  .home-promo {
    grid-template-columns: minmax(0, 1.15fr) minmax(126px, 0.85fr);
  }

  .home-promo-copy {
    padding: 21px 0 20px 20px;
  }

  .home-promo-copy h2 {
    font-size: 23px;
    line-height: 1.35;
  }

  .home-promo-copy p {
    margin-top: 16px;
    font-size: 9px;
    line-height: 1.7;
    white-space: nowrap;
  }

  .home-promo-copy button {
    min-width: 190px;
    min-height: 47px;
    margin-top: 25px;
    font-size: 13px;
  }

  .home-promo-images img {
    top: 18px;
    width: 104px;
    height: 197px;
    border-radius: 7px;
  }

  .home-promo-images img:first-child {
    left: 2px;
    transform: rotate(-2deg);
  }

  .home-promo-images img:last-child {
    display: none;
  }

  .home-creator-ranking {
    position: relative;
    padding: 16px 18px 38px;
  }

  .home-section-heading h2 {
    font-size: 15px;
  }

  .home-creator-ranking .home-section-heading a {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: inline-flex;
    justify-content: center;
    color: #147fe7;
    font-size: 12px;
  }

  .home-creator-ranking-list {
    gap: 4px;
    margin-top: 11px;
  }

  .home-creator-rank-row {
    grid-template-columns: 21px 30px minmax(0, 1fr) auto;
    min-height: 30px;
  }

  .home-creator-rank-row img {
    width: 30px;
    height: 30px;
  }

  .home-creator-rank-row strong {
    font-size: 11px;
  }

  .home-video-ranking {
    margin-top: 13px;
    padding: 15px 16px;
  }

  .home-video-ranking-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-video-card,
  .home-video-card:nth-child(n + 4) {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 72px;
  }

  .home-video-card .home-video-rank {
    top: 4px;
    left: 4px;
    color: #fff !important;
    font-size: 13px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
  }

  .home-video-thumb {
    grid-row: 1 / 4;
    margin: 0;
  }

  .home-video-card strong,
  .home-video-card small {
    margin-left: 10px;
  }

  .home-video-card strong {
    align-self: end;
    margin-top: 0;
    font-size: 11px;
  }

  .home-video-card small {
    font-size: 9px;
  }

  .home-creator-pick {
    min-height: 0;
    padding: 15px 16px;
  }

  .home-creator-pick-list {
    grid-template-columns: 1fr;
  }

  .home-tools {
    padding: 15px 16px;
  }

  .home-tool-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact portal: the desktop track is intentionally about 70% of the former width. */
@media (min-width: 981px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-header {
    height: 70px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
    grid-template-columns: 112px minmax(220px, 270px) minmax(0, 1fr);
    gap: 18px;
    width: min(1100px, calc(100% - 48px));
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand {
    width: 108px;
  }

  .home-header-search {
    height: 38px;
    padding: 0 11px;
    border-radius: 7px;
  }

  .home-header-search > .material-symbols-rounded {
    margin-right: 7px;
    font-size: 18px;
  }

  .home-header-search input {
    font-size: 11px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav {
    gap: clamp(9px, 1.2vw, 17px);
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav a,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav button {
    font-size: 10.5px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-login,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-register {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 7px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-logout {
    width: 36px;
    height: 36px;
  }

  .home-portal {
    width: min(1100px, calc(100% - 48px));
    padding: 11px 0 34px;
  }

  .home-panel {
    border-radius: 8px;
  }

  .home-top-grid {
    grid-template-columns: minmax(350px, 0.46fr) minmax(500px, 0.54fr);
    gap: 14px;
  }

  .home-media-panel {
    min-height: 460px;
    padding: 0 16px 12px;
  }

  .home-media-tabs {
    height: 46px;
  }

  .home-media-tabs button {
    font-size: 11.5px;
  }

  .home-media-list {
    padding: 8px 0 5px;
  }

  .home-media-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    min-height: 46px;
    padding: 4px 0;
  }

  .home-media-row img {
    width: 52px;
    height: 39px;
  }

  .home-media-row strong {
    font-size: 10.5px;
  }

  .home-media-row span {
    gap: 7px;
    font-size: 8.5px;
  }

  .home-media-empty {
    padding: 18px;
  }

  .home-media-empty img {
    width: min(170px, 62%);
    margin-bottom: 13px;
  }

  .home-media-empty strong {
    font-size: 13px;
  }

  .home-media-empty p,
  .home-loading {
    font-size: 10px;
  }

  .home-more-link {
    min-height: 24px;
    font-size: 9px;
  }

  .home-top-side {
    grid-template-rows: 225px minmax(225px, 1fr);
    gap: 10px;
  }

  .home-promo {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .home-promo-copy {
    padding: 22px 10px 20px 27px;
  }

  .home-promo-copy h2 {
    font-size: clamp(24px, 2vw, 27px);
    white-space: nowrap;
  }

  .home-promo-copy p {
    margin-top: 13px;
    font-size: 10px;
  }

  .home-promo-copy button {
    min-width: 168px;
    min-height: 40px;
    margin-top: 20px;
    font-size: 12px;
  }

  .casta-lp .home-promo-device-demo {
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    overflow: visible;
  }

  .casta-lp .home-promo-device-demo .lp-preview-card {
    width: 280px;
    aspect-ratio: 9 / 16;
  }

  .casta-lp .home-promo-device-demo .lp-preview-profile {
    top: 11px;
    left: 12%;
    transform: scale(0.42) rotate(-5deg);
    transform-origin: top left;
  }

  .casta-lp .home-promo-device-demo .lp-preview-list {
    top: 8px;
    right: 12%;
    transform: scale(0.42) rotate(4deg);
    transform-origin: top right;
  }

  .home-section-heading h2 {
    font-size: 14px;
  }

  .home-section-heading a,
  .home-section-heading button {
    font-size: 9px;
  }

  .home-creator-ranking {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 18px 12px;
  }

  .home-creator-ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(31px, 1fr));
    grid-auto-flow: column;
    flex: 1 1 auto;
    gap: 3px 12px;
    min-height: 0;
    margin-top: 10px;
  }

  .home-creator-rank-row {
    grid-template-columns: 16px 27px minmax(0, 1fr) 75px 12px;
    gap: 4px;
    min-height: 31px;
  }

  .home-creator-rank-row > b,
  .home-creator-rank-row strong {
    font-size: 10.5px;
  }

  .home-creator-rank-row img {
    width: 27px;
    height: 27px;
  }

  .home-creator-rank-row em {
    font-size: 12px;
  }

  .home-creator-rank-stats {
    gap: 4px;
  }

  .home-creator-rank-stats small {
    font-size: 6px;
  }

  .home-creator-rank-stats b {
    font-size: 8px;
  }

  .home-video-ranking {
    margin-top: 13px;
    padding: 10px 14px 12px;
  }

  .home-video-ranking-list {
    gap: 16px;
    margin-top: 8px;
  }

  .home-video-card .home-video-rank {
    left: -8px;
    font-size: 20px;
  }

  .home-video-thumb {
    margin-left: 22px;
    border-radius: 6px;
  }

  .home-video-card strong {
    margin: 6px 0 0 22px;
    font-size: 9.5px;
  }

  .home-video-card small {
    margin: 2px 0 0 22px;
    font-size: 8px;
  }

  .home-creator-pick {
    min-height: 132px;
    margin-top: 10px;
    padding: 10px 14px 12px;
  }

  .home-creator-pick-list {
    gap: 12px;
    margin-top: 7px;
  }

  .home-creator-pick-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 9px;
    min-height: 82px;
    padding: 11px;
  }

  .home-creator-pick-card img {
    width: 48px;
    height: 48px;
  }

  .home-creator-pick-card strong {
    font-size: 10.5px;
  }

  .home-creator-pick-card span,
  .home-creator-pick-card small {
    font-size: 8px;
  }

  .home-tools {
    margin-top: 10px;
    padding: 8px 14px 10px;
  }

  .home-tool-list {
    gap: 6px;
    margin-top: 5px;
  }

  .home-tool-list a,
  .home-tool-list button {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 55px;
    padding: 6px 7px;
  }

  .home-tool-list .material-symbols-rounded {
    font-size: 29px;
  }

  .home-tool-list strong {
    font-size: 9.5px;
  }

  .home-tool-list small {
    font-size: 7.5px;
  }
}

.home-creator-rank-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.home-creator-rank-stats > span {
  display: grid;
  min-width: 0;
  text-align: right;
}

.home-creator-rank-stats small {
  color: #8992aa;
  font-size: 7px;
  font-weight: var(--home-weight-support);
  line-height: 1;
}

.home-creator-rank-stats b {
  overflow: hidden;
  margin-top: 2px;
  color: #303a54;
  font-size: 9px;
  font-weight: var(--home-weight-emphasis);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) {
    padding-top: 70px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 70px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--home-line);
    border-radius: 0;
    box-shadow: 0 4px 18px rgba(43, 57, 89, 0.06);
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .header-inner {
    display: flex;
    gap: 6px;
    width: min(calc(100% - 20px), 416px);
    margin: 0 auto;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .brand {
    flex: 0 0 auto;
    width: 96px;
    margin-right: auto;
  }

  .home-mobile-search-button,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .mobile-menu-button {
    display: none !important;
  }

  .home-header-search {
    display: none !important;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 5px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav > a {
    display: none !important;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-login,
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-register {
    display: inline-flex;
    min-height: 31px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 9px;
  }

  body.is-authenticated:not(.is-dashboard-view):not(.is-public-view) .nav .nav-register {
    display: none !important;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-logout {
    display: inline-flex;
    width: auto;
    height: 31px;
    padding: 0 8px;
    border-radius: 6px;
  }

  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) .nav .nav-logout[hidden] {
    display: none !important;
  }

  .nav-logout .material-symbols-rounded {
    display: none;
  }

  .nav-logout-label {
    display: inline;
    font-size: 8px;
    font-weight: 650;
  }

  .home-portal {
    width: min(calc(100% - 40px), 416px);
    padding: 12px 0 30px;
  }

  .home-media-panel {
    min-height: 640px;
    border-radius: 9px;
  }

  .home-top-side {
    grid-template-rows: 150px auto;
  }

  .home-promo {
    grid-template-columns: minmax(0, 210px) minmax(108px, 122px);
    justify-content: center;
  }

  .home-promo-copy {
    align-items: center;
    transform: translateX(-3px);
    padding: 12px 4px 12px 10px;
    text-align: center;
  }

  .home-promo-copy h2 {
    font-size: 17px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .home-promo-copy p {
    margin-top: 8px;
    font-size: 7.5px;
    line-height: 1.5;
  }

  .home-promo-copy button {
    min-width: 120px;
    min-height: 33px;
    margin-top: 10px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 9px;
  }

  .casta-lp .home-promo-device-demo {
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    overflow: visible;
    transform: translateX(-3px);
  }

  .casta-lp .home-promo-device-demo .lp-preview-card {
    width: 280px;
    aspect-ratio: 9 / 16;
  }

  .casta-lp .home-promo-device-demo .lp-preview-profile {
    top: 17px;
    left: 0;
    transform: scale(0.19) rotate(-4deg);
    transform-origin: top left;
  }

  .casta-lp .home-promo-device-demo .lp-preview-list {
    top: 15px;
    right: 0;
    display: flex;
    transform: scale(0.19) rotate(4deg);
    transform-origin: top right;
  }

  .home-creator-rank-row {
    grid-template-columns: 18px 28px minmax(0, 1fr) 96px 12px;
    gap: 5px;
  }

  .home-creator-rank-stats {
    gap: 5px;
  }

  .home-creator-rank-stats small {
    font-size: 6px;
  }

  .home-creator-rank-stats b {
    font-size: 8px;
  }

  .home-creator-pick {
    min-height: 0;
    padding: 11px 12px;
  }

  .home-creator-pick-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 7px;
  }

  .home-creator-pick-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 8px;
    min-height: 67px;
    padding: 8px 10px;
    border-radius: 7px;
  }

  .home-creator-pick-card img {
    width: 40px;
    height: 40px;
  }

  .home-creator-pick-card strong {
    font-size: 10.5px;
  }

  .home-creator-pick-card span,
  .home-creator-pick-card small {
    font-size: 8px;
  }

  .home-creator-pick-card small {
    margin-top: 2px;
  }
}

/* Flat mobile portal: sections use full width and quiet separators instead of cards. */
@media (max-width: 620px) {
  body:not(.is-dashboard-view):not(.is-public-view):not(.is-admin-icon-view) {
    background: #fff;
  }

  .home-portal {
    width: 100%;
    padding: 0 0 24px;
  }

  .home-top-grid,
  .home-top-side {
    gap: 0;
  }

  .home-top-side {
    grid-template-rows: 150px auto;
  }

  .home-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-media-panel,
  .home-promo,
  .home-creator-ranking,
  .home-video-ranking,
  .home-creator-pick,
  .home-tools {
    margin-top: 0;
    border-bottom: 1px solid #e8ecf3;
    border-radius: 0;
  }

  .home-media-panel {
    min-height: 0;
    padding: 0 18px 16px;
  }

  .home-media-row + .home-media-row,
  .home-creator-rank-row + .home-creator-rank-row,
  .home-video-card + .home-video-card,
  .home-creator-pick-card + .home-creator-pick-card {
    border-top: 1px solid #edf0f5;
  }

  .home-creator-ranking {
    padding: 20px 18px 40px;
  }

  .home-creator-rank-row {
    min-height: 38px;
  }

  .home-video-ranking,
  .home-creator-pick,
  .home-tools {
    padding: 22px 18px;
  }

  .home-video-ranking-list,
  .home-creator-pick-list,
  .home-tool-list {
    gap: 0;
  }

  .home-video-card {
    padding: 10px 0;
  }

  .home-creator-pick-card {
    min-height: 70px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
  }

  .home-tool-list a,
  .home-tool-list button {
    min-height: 66px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
  }

  .home-tool-list > :last-child {
    border-bottom: 0;
  }

  .home-media-tabs {
    height: 43px;
  }

  .casta-lp .home-promo-device-demo .lp-preview-profile {
    top: 18px;
    left: -5px;
    transform: scale(0.43) rotate(-4deg);
  }

  .casta-lp .home-promo-device-demo .lp-preview-list {
    top: 18px;
    right: -5px;
    transform: scale(0.43) rotate(4deg);
  }

  .casta-lp .home-promo-device-demo .lp-preview-card {
    width: 150px;
  }
}
