
#episodelist_pop {
  width: 96%;
  max-width: 600px;
  max-height: 80%;
  height: auto;
  margin: 0 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #707070;
  -webkit-box-shadow: 0 6px 6px rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.16);
  position: relative;
  overflow-y: auto; }
  @media all and (max-width: 991px) {
    #episodelist_pop {
      max-height: 96%; } }

.episodelist_pop_header {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  position: relative;
  border-bottom: 1px solid #b9b9b9;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

.episodelist_pop_title {
  width: 100%;
  font-size: 22px;
  line-height: 27px;
  text-align: center;
  font-weight: bold;
  padding: 0 55px 0 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

#episodelist_pop_close_btn {
  width: 28px;
  height: 28px;
  position: relative;
  cursor: pointer;
  text-indent: -1000px;
  position: absolute;
  top: 12px;
  right: 14px; }
  #episodelist_pop_close_btn::before {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    display: block;
    background-color: #000000;
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    position: absolute;
    top: 11px;
    left: -4px; }
  #episodelist_pop_close_btn::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background-color: #000000;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    top: 11px;
    left: -4px; }

.episodelist_pop_body {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 50px 30px 50px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }
  @media all and (max-width: 991px) {
    .episodelist_pop_body {
      width: 90%;
      padding: 20px 0 30px 0;
      margin: 0 auto; } }

.episodelist_pop_footer {
  padding: 0 50px 30px 50px;
  text-align: center; }
  @media all and (max-width: 991px) {
    .episodelist_pop_footer {
      width: 96%;
      padding: 0 0 30px 0;
      margin: 0 auto; } }

.new_episodelist_name_label {
  height: 17px;
  line-height: 17px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 400;
  display: block; }

#createUserEpisodeListTitle {
  color: #484848; }

.updateUserEpisodeListTitleBtn {
  width: 150px;
  height: 42px;
  font-size: 17px;
  color: #fff;
  border-radius: 0;
  border: solid 1px #239dd5;
  background: #239dd5;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }
  .updateUserEpisodeListTitleBtn:hover {
    border-color: #41aee0;
    background-color: #41aee0; }

.updateEpisodeToUserEpisodeListBtn {
  width: 90%;
  font-size: 18px;
  min-height: 20px;
  line-height: 20px;
  margin: 0 auto 15px auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  word-wrap: break-word;
  word-break: break-all; }
  .updateEpisodeToUserEpisodeListBtn::before {
    content: "";
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: block;
    background-image: url("/themes/custom/omia_theme/images/omia/shoppingcar.png");
    background-position: 0 0;
    cursor: pointer;
    background-size: 500px auto;
    background-repeat: no-repeat;
    margin: 0 0.5em 0 0; }
  @media all and (max-width: 991px) {
    .updateEpisodeToUserEpisodeListBtn {
      width: 96%; } }

.added-in-list::before {
  display: block;
  background-image: url("/themes/custom/omia_theme/images/omia/shoppingcar.png");
  background-position: -27px 0;
  background-size: 500px auto;
  margin: 0 0.5em 0 0; }

.addUserEpisodeListBtn, .createUserEpisodeListBtn {
  width: 150px;
  height: 42px;
  font-size: 17px;
  color: #fff;
  border-radius: 0;
  border: solid 1px #239dd5;
  background: #239dd5;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }
  .addUserEpisodeListBtn:hover, .createUserEpisodeListBtn:hover {
    border-color: #41aee0;
    background-color: #41aee0; }

.backToListBtn {
  width: 150px;
  height: 42px;
  font-size: 17px;
  color: #239dd5;
  border-radius: 0;
  border: solid 1px #239dd5;
  background: transparent;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }
  .backToListBtn:hover {
    color: #60bbe5;
    background-color: #f9fcfe; }

/* 載入中狀態 */
.episodelist_loading {
  padding: 60px 20px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #239dd5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.episodelist_loading p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* 空狀態 */
.empty_state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.empty_state p {
  margin: 8px 0;
  font-size: 16px;
}

.empty_hint {
  font-size: 14px !important;
  color: #bbb !important;
}

/* 成功提示 */
.success_toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  font-size: 15px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInOut 2s ease-in-out;
}

.success_icon {
  width: 20px;
  height: 20px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  15% { opacity: 1; transform: translate(-50%, -50%); }
  85% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -60%); }
}