/* The Modal (background) */
html {
  -webkit-font-smoothing: antialiased;
}

*:before,
*:after {
  box-sizing: border-box;
}

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 10;
  /* Sit on top */
  /*padding-top: 100px;*/
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 35%;
  margin-top: 75px;
  margin-bottom: 75px;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

.cards {
  width: 100%;
  display: flex;
  display: -webkit-flex;
  justify-content: center;
  -webkit-justify-content: center;
  box-sizing: border-box;
}

.card__img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 150px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-sizing: border-box;
}

.card__info-hover {
  position: absolute;
  padding: 16px;
  width: 100%;
  min-height: 150px;
  opacity: 0;
  top: 0;
  box-sizing: border-box;
}

.card__img--hover {
  transition: 0.5s all ease-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: absolute;
  min-height: 150px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  top: 0;
  box-sizing: border-box;
}

.card {
  width: 23%;
  max-width: 23%;
  margin: 25px 1%;
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0, 1);
  background-color: #fff;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 9px 10px 1px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.card:hover {
  box-shadow: 0px 15px 18px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.03, 1.03);
  box-sizing: border-box;
}

.card__info {
  z-index: 2;
  background-color: #fff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 10px 15px 10px 15px;
  white-space: nowrap;
  box-sizing: border-box;
}

.card__category__div {
  margin-top: 3px;
}
.card__category {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #868686;
  box-sizing: border-box;
}

.card__title {
  margin-bottom: 2px;
  padding: 0px 1px 1px 0px;
  font-size: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.card__by {
  font-size: 12px;
  font-weight: 500;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__author {
  font-weight: 600;
  text-decoration: none;
  color: #f34343;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.card:hover .card__img {
  visibility: hidden;
  box-sizing: border-box;
}

.card:hover .card__img--hover {
  height: 100%;
  opacity: 0.3;
  box-sizing: border-box;
}

.card:hover .card__info {
  background-color: transparent;
  position: relative;
  top: auto;
  bottom: auto;
  box-sizing: border-box;
  white-space: nowrap;
}

.card:hover .card__info .card__title {
  text-overflow: ellipsis;
  white-space: normal;
  box-sizing: border-box;
}

.card:hover .card__info-hover {
  opacity: 1;
  box-sizing: border-box;
}

/* UPDATED ICON STYLING - Always visible with consistent white design */

/* Base styling for all three icons - always visible */
.card__playlist,
.card__playlist__analytics,
.card__playlist__edit {
  position: absolute;
  visibility: visible !important; /* Override existing hover-only behavior */
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon positions */
.card__playlist {
  top: 8px;
  right: 74px; /* Share icon - leftmost */
}

.card__playlist__analytics {
  top: 8px;
  right: 42px; /* Analytics icon - middle */
}

.card__playlist__edit {
  top: 8px;
  right: 10px; /* Edit icon - rightmost */
}

/* Hover effects for all icons */
.card__playlist:hover {
  background-color: #fff;
  border-color: #4caf50;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card__playlist__analytics:hover {
  background-color: #fff;
  border-color: #2196f3;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card__playlist__edit:hover {
  background-color: #fff;
  border-color: #ff9800;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Remove the old hover-only visibility rules */
.card:hover .card__playlist,
.card:hover .card__playlist__edit {
  position: absolute;
  visibility: visible;
  cursor: pointer;
  width: 28px;
}

/* Icon content styling */
.icon__playlist {
  height: 16px;
  width: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  position: relative;
}

/* Share icon - updated to work with new styling */
.icon__playlist__share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='m16 6-4-4-4 4'/%3E%3Cpath d='m12 2v13'/%3E%3C/svg%3E");
}

.card__playlist:hover .icon__playlist__share {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpath d='m16 6-4-4-4 4'/%3E%3Cpath d='m12 2v13'/%3E%3C/svg%3E");
}

/* Analytics icon */
.icon__playlist__analytics {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E");
}

.card__playlist__analytics:hover .icon__playlist__analytics {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232196f3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E");
}

/* Edit icon - updated to work with new styling */
.icon__playlist__edit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='m18.5 2.5 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

.card__playlist__edit:hover .icon__playlist__edit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff9800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='m18.5 2.5 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

/* Playlist delete and feature icons - existing functionality */
.card__playlist__delete {
  position: absolute;
  visibility: hidden;
  cursor: pointer;
  width: 28px;
  top: 46%;
  right: 6%;
  box-sizing: border-box;
}

.card__playlist__feature {
  position: absolute;
  visibility: hidden;
  cursor: pointer;
  font-size: 24px;
  top: 64%;
  right: 6.2%;
  box-sizing: border-box;
}

.card:hover .card__playlist__delete {
  position: absolute;
  visibility: visible;
  cursor: pointer;
  width: 28px;
  top: 46%;
  right: 6%;
  box-sizing: border-box;
}

.card:hover .card__playlist__feature {
  position: absolute;
  visibility: visible;
  cursor: pointer;
  font-size: 24px;
  top: 64%;
  right: 6.2%;
  box-sizing: border-box;
  z-index: 2;
}

.card__playlist__feature:hover {
  color: grey;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card__playlist,
  .card__playlist__analytics,
  .card__playlist__edit {
    width: 24px;
    height: 24px;
    top: 6px;
  }

  .card__playlist {
    right: 66px;
  }

  .card__playlist__analytics {
    right: 38px;
  }

  .card__playlist__edit {
    right: 10px;
  }

  .icon__playlist,
  .icon__playlist__share,
  .icon__playlist__analytics,
  .icon__playlist__edit {
    width: 14px;
    height: 14px;
  }
}

/* Legacy icon styles - keeping for other playlist icons */
body:before {
  display: none;
  content: url("/assets/img/twitter-icon-black.png") url("/assets/img/twitter-icon-grey.png")
    url("/assets/img/facebook-icon-black.png") url("/assets/img/facebook-icon-grey.png")
    url("/assets/img/share-icon-black.png") url("/assets/img/share-icon-grey.png")
    url("/assets/img/copy-icon-black.png") url("/assets/img/copy-icon-grey.png") url("/assets/img/trash-icon-black.png")
    url("/assets/img/trash-icon-grey.png") url("/assets/img/playlist-icon-black.png")
    url("/assets/img/playlist-icon-grey.png") url("/assets/img/playlist-icon-white.png")
    url("/assets/img/edit-icon-grey.png") url("/assets/img/edit-icon-grey.png");
}

.icon__playlist__twitter {
  background-image: url(../../assets/img/twitter-icon-black.png);
}

.icon__playlist__twitter:hover {
  background-image: url(../../assets/img/twitter-icon-grey.png);
}

.icon__playlist__facebook {
  background-image: url(../../assets/img/facebook-icon-black.png);
}

.icon__playlist__facebook:hover {
  background-image: url(../../assets/img/facebook-icon-grey.png);
}

.icon__playlist__copy {
  background-image: url(../../assets/img/copy-icon-black.png);
}

.icon__playlist__copy:hover {
  background-image: url(../../assets/img/copy-icon-grey.png);
}

.icon__playlist__trash {
  background-image: url(../../assets/img/trash-icon-black.png);
}

.icon__playlist__trash:hover {
  background-image: url(../../assets/img/trash-icon-grey.png);
}

.icon__playlist__playlist {
  background-image: url(../../assets/img/playlist-icon-black.png);
}

.icon__playlist__playlist:hover {
  background-image: url(../../assets/img/playlist-icon-grey.png);
}

.icon__playlist__playlist__white {
  background-image: url(../../assets/img/playlist-icon-white.png);
}

.icon__playlist__playlist__white:hover {
  background-image: url(../../assets/img/playlist-icon-grey.png);
}

/*toggle switch checkbox*/

.switch-label {
  float: left;
  display: inline;
  margin-left: 16%;
  margin-top: 6px;
}

switch {
  cursor: pointer;
  float: left;
  display: inline;
}

.switch input {
  display: none;
}

.switch input + span {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  background: #ff4651;
  box-shadow: 0 8px 16px -1px rgba(255, 70, 81, 0.2);
}

.switch input + span:before,
.switch input + span:after {
  content: "";
  display: block;
  position: absolute;
  transition: all 0.3s ease;
}

.switch input + span:before {
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 5px solid #fff;
}

.switch input + span:after {
  top: 5px;
  left: 32px;
  width: 6px;
  height: 18px;
  border-radius: 40%;
  transform-origin: 50% 50%;
  background: #fff;
  opacity: 0;
}

.switch input + span:active {
  transform: scale(0.92);
}

.switch input:checked + span {
  background: #48ea8b;
  box-shadow: 0 8px 16px -1px rgba(72, 234, 139, 0.2);
}

.switch input:checked + span:before {
  width: 0px;
  border-radius: 3px;
  margin-left: 27px;
  border-width: 3px;
  background: #fff;
}

.switch input:checked + span:after {
  animation: blobChecked 0.35s linear forwards 0.2s;
}

.switch input:not(:checked) + span:before {
  animation: blob 0.85s linear forwards 0.2s;
}

@keyframes blob {
  0%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.12, 0.94);
  }
  60% {
    transform: scale(0.96, 1.06);
  }
}

@keyframes blobChecked {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }
  30% {
    transform: scaleX(1.44);
  }
  70% {
    transform: scaleX(1.18);
  }
  50%,
  99% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

.playlist_actions {
  display: inline-block;
  float: right;
  margin-top: 80px;
  margin-right: 4em;
  text-align: center;
}

.playlist__banner {
  display: inline-block;
  margin-top: 88px;
  color: #000;
  font-weight: 600;
  margin-left: 3px;
  padding-left: 2.5em;
  text-align: start;
  font-size: 1.8em;
}

.playlist__share__link {
  width: 85%;
  border: none;
  background: none;
  color: #828383;
  margin: 10px 0;
}

.playlist__share__icons a {
  color: inherit;
}

.playlist__share__icons .card__icons {
  font-size: 2em;
}

.dropbtn {
  background-image: url(../../assets/img/menu-icon-black.png);
  padding: 12px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin: 2.1em 1.7em 0px 0px;
  background-size: cover;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 1%;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 2;
  cursor: pointer;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

@media screen and (max-width: 900px) {
  .switch-label {
    float: left;
    display: inline;
    margin-left: 16%;
    margin-top: 6px;
  }

  .modal-content {
    width: 50%;
  }
}

@media screen and (max-width: 700px) {
  .card {
    max-width: 100%;
    width: 100%;
    -webkit-box-flex: initial;
    -ms-flex: initial;
    flex: initial;
    box-sizing: border-box;
    margin: 13px 1%;
  }

  .switch-label {
    float: left;
    display: inline;
    margin-left: 15%;
    margin-top: 6px;
  }

  .modal-content {
    width: 80%;
  }

  .playlist_actions {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
  }
  .playlist__banner {
    display: block;
    padding: 0.7em;
  }
}

@media screen and (max-width: 460px) {
  .switch-label {
    float: left;
    display: inline;
    margin-left: 20%;
    margin-top: 6px;
  }

  .modal-content {
    width: 80%;
  }
}

/*toggle switch checkbox*/

/*Search Film + Scenes Cards*/

.wrap {
  align-items: space-around;
  margin: 15px 1%;
  display: inline-block;
  max-width: 100%;
}

.tile {
  width: 22%;
  height: 115px;
  margin: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  background-size: cover;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease-out;
  box-shadow: rgba(0, 0, 0, 0.2) 5px 5px 5px;
  overflow: hidden;
  color: white;
}

.tile img {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  transition: all 0.4s ease-out;
}

.tile .text {
  /*   z-index:99; */
  position: absolute;
  padding: 20px;
  height: 100%;
  width: 100%;

  top: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  pointer-events: none;
  opacity: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  box-sizing: border-box;
  -ms-flex-line-pack: center;
  align-content: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}

.tile h1 {
  font-weight: 300;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.85em;
}

.tile h2 {
  font-weight: 100;
  margin: 15px 24px 0 0;
  transform: translateX(200px);
  color: white;
  font-size: 0.7em;
}

.tile p {
  font-weight: 300;
  margin: 20px 0 0 0;
  line-height: 25px;
  /*   opacity:0; */
  transform: translateX(-200px);
  transition-delay: 0.2s;
  color: white;
}

.animate-text {
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

.tile:hover {
  /*   background-color:#99aeff; */
  transform: scale(1.05);
}

.tile:hover img {
  opacity: 0.2;
}

.tile:hover .animate-text {
  transform: translateX(0);
  opacity: 1;
}

.dots {
  position: absolute;
  bottom: 4%;
  right: 3%;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  color: currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.dots {
  z-index: 10;
}

.dots span {
  display: block;
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.5s ease;
  transform: translateY(30px);
}

.tile:hover span {
  opacity: 1;
  transform: translateY(0px);
}

.dots span:nth-child(1) {
  transition-delay: 0.05s;
}

.home__spotlight {
  height: 400px;
  background-repeat: no-repeat;
  background-size: cover;
}

.home__spotlights .slick-arrow {
  top: 35%;
}

.films {
  padding-left: 3.5em;
  padding-right: 3.5em;
}

@media screen and (max-width: 700px) {
  .home__spotlight {
    height: 250px;
  }

  .films {
    padding-left: 0.9em;
    padding-right: 0.9em;
  }
  .playlist__banner {
    margin-top: 25px;
  }

  .playlist__create__button {
    width: 100%;
    height: 50px;
  }
}

/*Search Film + Scenes Cards*/
