:root {
  --theme-color: #15b63d;
  --text-color: #fff;
}

section{
  margin:7rem 3rem;
}
section h2 {
  margin-bottom: 2rem;
}

.abefilm-empty-watchlist {
  text-align: center;
  padding: 40px 0;
}

.abefilm-empty-image {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.abefilm-empty-title {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.abefilm-empty-desc {
  color: #aaa;
  margin-bottom: 20px;
}

.abefilm-watch-now-btn {
  display: inline-block;
  background: var(--theme-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}



.bookmark-controls {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.bookmark-controls button {
  background-color: var(--theme-color);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
}
.bookmark-controls button:hover {
background-color:#229b4b;
}
#cancelEdit {
  background: transparent;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
}


.select-all-wrapper {
  margin: 0.75rem 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  color: #fff;
  line-height: 2;
}


.select-circle {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.2s ease;
  font-size: 18px;
}

.select-circle.checked {
  background: var(--theme-color)!important;
  color: white;
  border: solid 1px var(--theme-color)!important;
  width: 16px;
  height: 16px;
  font-size: 12px;
}

.select-all-wrapper.checked .select-circle {
  color: white;
  
}


.bookmark-btn-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.bookmark-btn-select:hover {
  background: var(--theme-color);
  color: #fff;
}


.bookmark-btn-select.checked .select-circle {
  background: var(--theme-color);
  color: white;
  border: none;
}


.abefilm-bookmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.abefilm-bookmark-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.abefilm-bookmark-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 8px;
}


.abefilm-bookmark-card:hover .thumb::after,
.abefilm-bookmark-card:hover .thumb::before {
  opacity: 1;
}

.abefilm-bookmark-card .meta {
  padding: 8px 0;
  color: var(--text-color);
}

.abefilm-bookmark-card .title {
  font-size: 16px;
  font-weight: normal;
}

.abefilm-bookmark-card .type {
  font-size: 12px;
  color: #aaa;
}

.abefilm-bookmark-card .check-circle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  font-size: 14px;
  background: #25212177;
  border-radius: 50%;
  display: none;
  color: transparent;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid grey;
}

.abefilm-bookmark-card.editing .check-circle {
  display: flex;
}

.abefilm-bookmark-card.selected .check-circle {
  background: var(--theme-color);
  color: white;
  border: none;
}

#global-toast {
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  background: #363442;
  color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
}

#global-toast.show {
  opacity: 1;
}

.bi-check-circle {
  color: #1CC749; 
  margin-right: 4px;
}

.bi-x-circle {
  color: #ff4d4f; 
  margin-right: 4px;
}
.empty-message {
  text-align: center;
  color: gray;
  margin-top: 50px;
}

/* Disable hover play overlay if editing */
.thumb-link.disabled-link .play-overlay {
  display: none !important;
}

/* Play icon overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.thumb:hover .play-overlay {
  opacity: 1;
}

.play-overlay::before {
  content: '';
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%231CC749' cx='30' cy='30' r='30'/%3E%3Cpath d='M35.75,22.49 L45.14,36.59 C46.06,37.96 45.69,39.83 44.31,40.75 C43.82,41.07 43.24,41.25 42.64,41.25 H23.86 C22.2,41.25 20.86,39.91 20.86,38.25 C20.86,37.66 21.03,37.08 21.36,36.59 L30.75,22.49 C31.67,21.12 33.54,20.74 34.91,21.66 C35.24,21.88 35.53,22.16 35.75,22.49 Z' fill='%23FFFFFF' transform='translate(33.25, 30) rotate(-270) translate(-33.25, -30)'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirm-modal .modal-content {
  background: #13131f;
  padding: 30px 30px;
  border-radius: 8px;
  color: var(--text-color);
  text-align: center;
  max-width: 90%;
  width: 350px;
}

.confirm-modal .modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-modal .cancel-btn,
.confirm-modal .delete-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.confirm-modal .cancel-btn {
  background: transparent;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
}

.confirm-modal .delete-btn {
  background: #e53935;
  color: white;
}
