.rotk-cast-grid {
  --rc-size: 108px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px 16px;
  width: 100%;
  margin: 10px 0 16px;
}

.rotk-cast-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: var(--rc-size);
  flex: 0 0 var(--rc-size);
  text-align: center;
}

.rotk-cast-photo {
  display: block;
  box-sizing: border-box;
  width: var(--rc-size);
  height: var(--rc-size);
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 50%;
  border: 1.5px solid #c8c8c8;
  background: #f3f3f3;
  line-height: 0;
  text-decoration: none;
}

.rotk-cast-photo img,
.entry-card-box .rotk-cast-photo img {
  width: var(--rc-size) !important;
  height: var(--rc-size) !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transition: opacity 0.15s ease;
}

.rotk-cast-photo:hover img {
  opacity: 0.88 !important;
}

.rotk-cast-name,
.entry-card-box a.rotk-cast-name {
  display: block;
  font-size: 13px;
  font-weight: 700 !important;
  line-height: 1.25;
  color: #f92091 !important;
  text-decoration: none !important;
  word-break: break-word;
}

.rotk-cast-name:hover,
.entry-card-box a.rotk-cast-name:hover {
  color: #d11276 !important;
  text-decoration: underline !important;
}

.rotk-appearances {
  margin: 28px 0 8px;
}

h3.rotk-appear-heading {
  margin-top: 0 !important;
}

.rotk-appear-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
}

.rotk-appear-photo,
.entry-card-box a.rotk-appear-photo,
.entry-card-box .rotk-appearances a.rotk-appear-photo {
  display: block !important;
  flex: 0 0 150px !important;
  width: 150px !important;
  height: 75px !important;
  max-width: 150px !important;
  line-height: 0;
  text-decoration: none !important;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.rotk-appear-img,
.entry-card-box .rotk-appear-img,
.entry-card-box .rotk-appearances a.rotk-appear-photo img,
.entry-card-box .rotk-appearances img.rotk-appear-img {
  width: 150px !important;
  height: 75px !important;
  max-width: 150px !important;
  max-height: 75px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f1f5f9;
  transition: opacity 0.15s ease;
}

.rotk-appear-photo:hover,
.entry-card-box a.rotk-appear-photo:hover {
  text-decoration: none !important;
}

.rotk-appear-photo:hover img,
.rotk-appear-photo:active img,
.entry-card-box .rotk-appearances a.rotk-appear-photo:hover img,
.entry-card-box .rotk-appearances a.rotk-appear-photo:active img {
  opacity: 0.88 !important;
}

.rotk-appear-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a !important;
}

.rotk-appear-view,
.entry-card-box a.rotk-appear-view {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 18px;
  border-radius: 8px;
  background: #f92091 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2;
}

.rotk-appear-view:hover,
.entry-card-box a.rotk-appear-view:hover {
  background: #d11276 !important;
  color: #fff !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .rotk-appear-card,
  .entry-card-box .rotk-appear-card {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 0 !important;
  }

  .rotk-appear-photo,
  .entry-card-box a.rotk-appear-photo,
  .entry-card-box .rotk-appearances a.rotk-appear-photo {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
  }

  .rotk-appear-img,
  .entry-card-box .rotk-appear-img,
  .entry-card-box .rotk-appearances a.rotk-appear-photo img,
  .entry-card-box .rotk-appearances img.rotk-appear-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 2 / 1;
    flex: none !important;
  }

  .rotk-appear-title,
  .entry-card-box .rotk-appear-title {
    flex: 0 0 75% !important;
    width: 75% !important;
    max-width: 75% !important;
    box-sizing: border-box;
    padding-right: 8px;
    font-size: 14px;
  }

  .rotk-appear-view,
  .entry-card-box a.rotk-appear-view {
    flex: 0 0 25% !important;
    width: 25% !important;
    max-width: 25% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 8px 4px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 720px) {
  .rotk-cast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    justify-items: center;
  }
  .rotk-cast-node {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: none;
  }
  .rotk-cast-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 6px;
  }
  .rotk-cast-photo img,
  .entry-card-box .rotk-cast-photo img {
    width: 100% !important;
    height: 100% !important;
  }
  .rotk-cast-name,
  .entry-card-box a.rotk-cast-name {
    font-size: 12px;
  }
}
