@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&family=Poppins:wght@300;400;500;600&family=Roboto:wght@500&display=swap");

:root {
  --color-primary-hue: 255;
  --light-color-lightness: 95%;
  --dark-color-lightness: 17%;
  --white-color-lightness: 100%;

  --color-dark: hsl(252, 30%, var(--dark-color-lightness));
  --color-light: hsl(252, 30%, var(--light-color-lightness));
  --color-white: hsl(252, 30%, var(--white-color-lightness));
  --color-primary: hsl(var(--color-primary-hue), 75%, 60%);
  --color-gray: hsl(var(--color-primary-hue), 15%, 65%);
  --color-secondary: hsl(252, 100%, 90%);
  --color-success: hsl(120, 95%, 65%);
  --color-danger: hsl(0, 95%, 65%);
  --color-black: hsl(252, 30%, 10%);

  --border-radious: 2rem;
  --card-border-radius: 1rem;
  --btn-padding: 0.6rem 2rem;
  --search-padding: 0.6rem 1rem;
  --card-padding: 1rem;

  --sticky-top-left: 5.4rem;
  --sticky-top-right: -18rem;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  border: none;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--color-dark);
  background: var(--color-light);
  overflow-x: hidden;
}

.not-found-header {
  background-color: red;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.profile-photo {
  width: 2.7rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

.viral-profile-photo {
  width: 2.7rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: var(--btn-padding);
  font-weight: 500;
  border-radius: var(--border-radious);
  cursor: pointer;
  transition: all 300ms ease;
  font-size: 0.9rem;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.text-bold {
  font-weight: 500;
}

.text-muted {
  color: var(--color-gray);
}

/* ---- Navbar ---- */

nav {
  width: 100%;
  background: var(--color-white);
  padding: 0.7rem 0;
  position: fixed;
  top: 0;
  z-index: 10;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-bar {
  background: var(--color-light);
  border-radius: var(--border-radious);
  padding: var(--search-padding);
}

.search-bar input[type="search"] {
  background: transparent;
  width: 30vw;
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--color-dark);
}

nav .search-bar input[type="search"]::placeholder {
  color: var(--color-gray);
}

.search-focused .wrap,
.search-focused .headerVideoViewer {
  display: none !important;
}

nav .create {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ------ Main ----- */

main {
  position: relative;
  top: 5.4rem;
}

main .container {
  display: grid;
  grid-template-columns: 18vw auto 20vw;
  column-gap: 2rem;
  position: relative;
}

main .container .left {
  height: max-content;
  position: sticky;
  top: var(--sticky-top-left);
}

main .container .left .profile {
  padding: var(--card-padding);
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  display: flex;
  align-items: center;
  column-gap: 1rem;
  width: 100%;
}

/* ---- Sidebar ---- */

.left .sidebar {
  margin-top: 1rem;
  background: var(--color-white);
  border-radius: var(--card-border-radius);
}

.left .sidebar .menu-item {
  display: flex;
  align-items: center;
  height: 3.6rem;
  cursor: pointer;
  transition: all 300ms ease;
  position: relative;
  text-decoration: none;
  color: var(--color-dark);
}

.left .sidebar .menu-item:hover {
  background: var(--color-light);
}

.left .sidebar i {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-left: 2rem;
  position: relative;
}

.left .sidebar i .notification-count {
  background: var(--color-danger);
  color: white;
  font-size: 0.7rem;
  width: fit-content;
  border-radius: 0.8rem;
  padding: 0.1rem 0.4rem;
  position: absolute;
  top: -0.2rem;
  right: -0.3rem;
}

.left .sidebar h3 {
  margin-left: 1.5rem;
  font-size: 1rem;
}

.left .sidebar .active {
  background: var(--color-light);
}

.left .sidebar .active i,
.left .sidebar .active h3 {
  color: var(--color-primary);
}

.left .sidebar .active::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 100%;
  position: absolute;
  background: var(--color-primary);
}

.left .sidebar .menu-item:first-child.active {
  border-top-left-radius: var(--card-border-radius);
  overflow: hidden;
}
.left .sidebar .menu-item:last-child.active {
  border-bottom-left-radius: var(--card-border-radius);
  overflow: hidden;
}

.left .btn {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}

/* ---- Notification Popup ---- */

.left .notifications-popup {
  position: absolute;
  top: 0;
  left: 110%;
  width: 30rem;
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  box-shadow: 0 0 2rem hsl(var(--color-primary), 75%, 60% 25%);
  z-index: 8;
  display: none;
}

.left .notifications-popup::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  background: var(--color-white);
  position: absolute;
  left: -0.6rem;
  transform: rotate(45deg);
}

.left .notifications-popup > div {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.left .notifications-popup small {
  display: block;
}

/* ---- Middle ---- */

.middle .stories {
  display: flex;
  justify-content: space-between;
  height: 12rem;
  gap: 0.5rem;
}

.middle .stories .story {
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 0.75rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.middle .stories .story::before {
  content: "";
  display: block;
  width: 100%;
  height: 5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  position: absolute;
  bottom: 0;
}

.middle .stories .story .name {
  z-index: 2;
}

.middle .stories .story:nth-child(1) {
  background: url("images/story-1.jpg") no-repeat center center/cover;
}
.middle .stories .story:nth-child(2) {
  background: url("images/story-2.jpg") no-repeat center center/cover;
}
.middle .stories .story:nth-child(3) {
  background: url("images/story-3.jpg") no-repeat center center/cover;
}
.middle .stories .story:nth-child(4) {
  background: url("images/story-4.jpg") no-repeat center center/cover;
}
.middle .stories .story:nth-child(5) {
  background: url("images/story-5.jpg") no-repeat center center/cover;
}
.middle .stories .story:nth-child(6) {
  background: url("images/story-6.jpg") no-repeat center center/cover;
}

.middle .story .profile-photo {
  width: 2rem;
  height: 2rem;
  align-self: start;
  border: 3px solid var(--color-light);
}

/*  --- Create post --- */

.middle .create-post {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  background: var(--color-white);
  padding: 0.4rem var(--card-padding);
  border-radius: var(--border-radious);
}

.middle .create-post input[type="text"] {
  justify-self: start;
  width: 100%;
  padding-left: 1rem;
  background: transparent;
  color: var(--color-dark);
  margin-right: 1rem;
}

/* ---- Feeds ---- */
.middle .viral-feeds .viral-feed {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.middle .viral-feed .viral-head {
  display: flex;
  justify-content: space-between;
}

.middle .viral-feed .viral-user {
  display: flex;
  gap: 1rem;
}

.middle .viral-feed .viral-photo {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  margin: 0.7rem 0;
}

.middle .viral-feed .viral-action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  margin: 0.6rem;
}

.middle .viral-liked-by {
  display: flex;
}

.middle .viral-liked-by span {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-white);
  margin-left: -0.6rem;
}

.middle .viral-liked-by span:first-child {
  margin: 0;
}

.middle .viral-liked-by {
  margin-left: 0.5rem;
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.4;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
.middle .feeds .feed {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.middle .feed .head {
  display: flex;
  justify-content: space-between;
}

.middle .feed .user {
  display: flex;
  gap: 1rem;
}

.middle .feed .photo {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  margin: 0.7rem 0;
}

.middle .feed .action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  margin: 0.6rem;
}

.middle .liked-by {
  display: flex;
}

.middle .liked-by span {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-white);
  margin-left: -0.6rem;
}

.middle .liked-by span:first-child {
  margin: 0;
}

.middle .liked-by {
  margin-left: 0.5rem;
}

.middle .feed .user {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0; /* VERY important */
}

.middle .feed .user .profile-photo {
  flex: 0 0 auto; /* avatar fixed size */
}

.middle .feed .user .info {
  flex: 1 1 auto;
  min-width: 0; /* 👈 absolutely required */
  overflow: hidden; /* allow children to crop */
  text-align: left;
}

.video-title {
  display: block; /* needed for ellipsis */
  white-space: nowrap; /* one line only */
  overflow: hidden; /* hide overflow */
  text-overflow: ellipsis; /* show "..." */
  max-width: 100%; /* respect parent width */
}

/* ----- RIGHT ----- */

main .container .right {
  height: max-content;
  position: sticky;
  top: var(--sticky-top-right);
  bottom: 0;
}

.right .messages {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
}

.right .messages .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.right .messages i {
  font-size: 1.4rem;
}

.right .messages .search-bar {
  display: flex;
  margin-bottom: 1rem;
}

.right .messages .category {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.right .messages .category h6 {
  width: 100%;
  text-align: center;
  border-bottom: 4px solid var(--color-light);
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
}

.right .messages .message-request {
  border-color: var(--color-primary);
}

.right .messages .category .active {
  border-color: var(--color-dark);
}

.right .messages .message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.right .message .profile-photo {
  position: relative;
  overflow: visible;
}

.right .profile-photo img {
  border-radius: 50%;
}

.right .messages .message:last-child {
  margin: 0;
}

.right .messages .message p {
  font-size: 0.8rem;
}

.right .messages .message .profile-photo .active {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  background: var(--color-success);
  position: absolute;
  bottom: 0;
  right: 0;
}

/* ==== Friend request ==== */

.right .friend-requests {
  margin-top: 1rem;
}

.right .friend-requests h4 {
  color: var(--color-gray);
  margin: 1rem 0;
}

.right .request {
  background: var(--color-white);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  margin-bottom: 0.7rem;
}

.right .request .info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.right .request .action {
  display: flex;
  gap: 1rem;
}

/* ==== Theme Customization ==== */

.customize-theme {
  background: rgb(255, 255, 255, 0.5);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  text-align: center;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  display: none;
}

.customize-theme .card {
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--card-border-radius);
  width: 50%;
  box-shadow: 0 0 1rem var(--color-primary);
}

/* ---- Font Size ---- */

.customize-theme .font-size {
  margin-top: 5rem;
}

.customize-theme .font-size > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-light);
  padding: var(--search-padding);
  border-radius: var(--card-border-radius);
}

.customize-theme .choose-size {
  background: var(--color-secondary);
  height: 0.3rem;
  width: 100%;
  margin: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customize-theme .choose-size span {
  width: 1rem;
  height: 1rem;
  background: var(--color-secondary);
  border-radius: 50%;
  cursor: pointer;
}

.customize-theme .choose-size span.active {
  background: var(--color-primary);
}

/* ----- Font Size ----- */

.customize-theme .color {
  margin-top: 2rem;
}

.customize-theme .choose-color {
  background: var(--color-light);
  padding: var(--search-padding);
  border-radius: var(--card-border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customize-theme .choose-color span {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.customize-theme .choose-color span:nth-child(1) {
  background: hsl(252, 75%, 60%);
}

.customize-theme .choose-color span:nth-child(2) {
  background: hsl(52, 75%, 60%);
}

.customize-theme .choose-color span:nth-child(3) {
  background: hsl(352, 75%, 60%);
}

.customize-theme .choose-color span:nth-child(4) {
  background: hsl(152, 75%, 60%);
}

.customize-theme .choose-color span:nth-child(5) {
  background: hsl(202, 75%, 60%);
}

.customize-theme .choose-color span.active {
  border: 5px solid white;
}

/* ---- Background ---- */

.customize-theme .background {
  margin-top: 2rem;
}

.customize-theme .choose-bg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.customize-theme .choose-bg > div {
  padding: var(--card-padding);
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.4rem;
  cursor: pointer;
}

.customize-theme .choose-bg > div.active {
  border: 2px solid var(--color-primary);
}

.customize-theme .choose-bg .bg-1 {
  background: white;
  color: black;
}

.customize-theme .choose-bg .bg-2 {
  background: hsl(255, 30%, 17%);
  color: white;
}

.customize-theme .choose-bg .bg-3 {
  background: hsl(255, 30%, 10%);
  color: white;
}

.customize-theme .choose-bg > div span {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--color-gray);
  border-radius: 50%;
  margin-right: 1rem;
}

/* ===== Media Queries for-> 1200px ===== */

@media screen and (max-width: 1200px) {
  .container {
    width: 96%;
  }

  main .container {
    grid-template-columns: 5rem auto 30vw;
    gap: 1rem;
  }

  .left {
    width: 4rem;
    z-index: 5;
  }

  main .container .left .profile {
    display: none;
  }

  .sidebar h3 {
    display: none;
  }

  .left .btn {
    display: none;
  }

  .customize-theme .card {
    width: 80vw;
  }
}

/* ===== Media Queries for-> 992px ===== */

@media screen and (max-width: 992px) {
  nav .search-bar {
    display: none;
  }

  nav .search-bar.show-search {
    display: flex;
  }

  .create.hide-create {
    display: none;
  }

  main .container {
    grid-template-columns: 0 auto 4rem;
    gap: 0;
  }

  main .container .left {
    grid-column: 3/4;
    position: fixed;
    bottom: 0;
    right: 0;
  }

  /* ----- Notification Popup ----- */
  .left .sidebar i {
    margin-left: 1rem;
  }

  .left .notifications-popup {
    position: absolute;
    left: -20rem;
    width: 20rem;
  }

  .left .notifications-popup::before {
    display: absolute;
    top: 1.3rem;
    left: calc(20rem - 0.6rem);
    display: block;
  }

  main .container .middle {
    grid-column: 1/3;
  }

  main .container .right {
    display: none;
  }

  .customize-theme .card {
    width: 92vw;
  }
}

.video-item {
  text-align: center;
}

.video-container {
  width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  cursor: pointer;
}

.video-container img,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.video-container video.loaded + .video-posters {
  display: none; /* Hide poster when video is loaded */
}

.hidden {
  display: none;
}

/* ------------------Loader & Splash Screen ---------------------------- */
#splash-screen {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: #111;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splash-content {
  text-align: center;
}

/* Loader Styles */
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.blur-up {
  filter: blur(20px);
  transition: filter 1.2s ease-in-out, opacity 1.2s ease-in-out;
  opacity: 0.7;
}

.lazyload:not([src]) {
  visibility: hidden;
}

.lazyloaded {
  filter: blur(0);
  opacity: 1;
}

.feed-video {
  background: #000;
  display: block;
}

.feed-video:not(.video-ready) {
  opacity: 0; /* hide video until ready */
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Space between elements */
  position: fixed;
  bottom: 20px; /* Adjust position from bottom */
  left: 50%;
  transform: translateX(-50%);

  /* Glassmorphism background */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari support */

  padding: 10px 20px;
  border-radius: 25px;

  /* Soft border for glass effect */
  border: 1px solid rgba(255, 255, 255, 0.3);

  /* Subtle shadow to make it pop */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2),
    inset 0px 4px 6px rgba(255, 255, 255, 0.2);
}

.pagination-controls button {
  background-color: var(--color-primary); /* Orange color */
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: 0.3s;
}

.pagination-controls button:disabled {
  background-color: gray;
  cursor: not-allowed;
}

.pagination-controls span {
  color: white;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.pagination-controls button:hover:not(:disabled) {
  background-color: #ff5722;
}

.blurred {
  filter: blur(10px) !important;
  transition: filter 0.3s ease-in-out;
}

#fullscreen-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden;
}

#fullscreen-popup.hidden {
  display: none;
}

.popup-content {
  text-align: center;
  font-size: 20px;
}

/* Close Button */
#close-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: red;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

#close-popup:hover {
  background: darkred;
}

.square {
  background: #afa;
  display: inline-block;
  border: 1px solid #fff;
  text-align: center;
  position: absolute;
  cursor: pointer;
  color: #000;
}

.uil-heart {
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  user-select: none;
  pointer-events: auto;
}

.fa-heart.liked {
  color: red;
}

.not-found-message {
  margin-top: 100px;
  text-align: center;
}

/* ----- Carousel Wrapper ----- */
.wrap {
  overflow: hidden;
}

/* ----- Carousel ----- */
.carousel {
  display: flex;
  left: -100%;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  transform: translateX(100%);
}
@media (min-width: 30em) {
  .carousel {
    left: -33.33333%;
    transform: translateX(33.33333%);
  }
}
@media (min-width: 40em) {
  .carousel {
    left: -20%;
    transform: translateX(20%);
  }
}
.carousel.is-reversing {
  transform: translateX(-100%);
}
@media (min-width: 30em) {
  .carousel.is-reversing {
    transform: translateX(-33.33333%);
  }
}
@media (min-width: 40em) {
  .carousel.is-reversing {
    transform: translateX(-20%);
  }
}
.carousel.is-set {
  transform: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ----- Seat Boxes ----- */
.carousel-seat {
  flex: 1 0 100%;
  order: 2;
  padding: 10px;
  box-sizing: border-box;
}
@media (min-width: 30em) {
  .carousel-seat {
    flex-basis: 33.33333%;
  }
}
@media (min-width: 40em) {
  .carousel-seat {
    flex-basis: 20%;
  }
}
.carousel-seat.is-ref {
  order: 1;
}

.headerCarousel-seat {
  flex: 1 0 100%;
  order: 2;
  padding: 10px;
  box-sizing: border-box;
}
@media (min-width: 30em) {
  .headerCarousel-seat {
    flex-basis: 33.33333%;
  }
}
@media (min-width: 40em) {
  .headerCarousel-seat {
    flex-basis: 20%;
  }
}
.headerCarousel-seat.header-is-ref {
  order: 1;
}

/* ----- Poster Box ----- */
.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: #fff;
}
.poster-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ----- Gradient Overlay & Info ----- */
.gradient-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  box-sizing: border-box;
}
.gradient-overlay .info {
  width: 100%;
}
.gradient-overlay .info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}
.gradient-overlay .info p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* Centered Play Icon */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}

.poster-box:hover .play-icon {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1.1);
  transition: all 0.3s ease;
}

.custom-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.custom-play-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.custom-play-button svg {
  width: 40%;
  height: 40%;
  fill: white;
}

.telegram-popup {
  height: auto;
  width: 220px;
  background-color: #fff;
  position: fixed;
  bottom: 15px;
  left: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
}

/* Close Button Styling */
.close-popup-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-popup-btn:hover {
  color: #000;
}

.telegram-popup p {
  color: #000;
  margin: 8px 0;
}

.telegram-button {
  background-color: #1682fb;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.telegram-button:hover {
  background-color: #0e6ed9;
}

.telegram-button p {
  color: #fff;
  font-size: 14px;
  padding: 10px 15px;
  margin: 0;
}

.telegram-button-link {
  text-decoration: none;
}

.middle .premium {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  background: #0e6ed9;
  padding: 0.4rem var(--card-padding);
  border-radius: var(--border-radious);
}

.middle .premium-header {
  width: 100%;
  height: 60px;
  background-color: #0e6ed9;
}

.headerVideoViewer {
  overflow: hidden;
}

/* ----- Carousel ----- */
.headerCarousel {
  display: flex;
  left: -100%;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  transform: translateX(100%);
}

@media (min-width: 30em) {
  .headerCarousel {
    left: -33.33333%;
    transform: translateX(33.33333%);
  }
}
@media (min-width: 40em) {
  .headerCarousel {
    left: -20%;
    transform: translateX(20%);
  }
}
.headerCarousel.is-reversing {
  transform: translateX(-100%);
}
@media (min-width: 30em) {
  .headerCarousel.is-reversing {
    transform: translateX(-33.33333%);
  }
}
@media (min-width: 40em) {
  .headerCarousel.is-reversing {
    transform: translateX(-20%);
  }
}
.headerCarousel.is-set {
  transform: none;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ----- Seat Boxes ----- */

.headerCarousel-seat {
  flex: 1 0 100%;
  width: 260;
  order: 2;
  padding: 10px;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
}
@media (min-width: 30em) {
  .headerCarousel-seat {
    flex-basis: 33.33333%;
  }
}
@media (min-width: 40em) {
  .headerCarousel-seat {
    flex-basis: 20%;
  }
}
.headerCarousel-seat.is-ref {
  order: 1;
}

.header-poster-box {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.header-poster-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-gradient-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
}

.header-gradient-overlay .header-info {
  font-size: 0.9rem;
}

.video-of-day-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px 16px;
  color: #fff;
  backdrop-filter: blur(8px);
}

.top-icon-box {
  width: 36px;
  height: 36px;
  background-color: #8b5cf6; /* Purple */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.top-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
}

.top-text-box {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  color: var(--color-primary);
}

.top-arrow-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.top-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.top-arrow-btn .top-icon {
  width: 18px;
  height: 18px;
  stroke: var(--color-secondary);
}

/* Responsive tweak */
@media (max-width: 500px) {
  .top-text-box {
    font-size: 0.9rem;
  }
}

body.modal-open {
  overflow: hidden;
}

.tri-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.tri-modal-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tri-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--color-primary); /* Optional background circle */
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.tri-close-btn svg {
  display: block;
}

.tri-title {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
}

.triangle-layout {
  position: relative;
  width: 260px;
  height: 220px;
}

.triangle-box {
  position: absolute;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.triangle-box:hover {
  transform: scale(1.05);
}

.triangle-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Triangle Positioning */
.top-box {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-left-box {
  bottom: 0;
  left: 0;
}

.bottom-right-box {
  bottom: 0;
  right: 0;
}

/* Shared styles for all tooltips */
/* Tooltip container */
.tooltip {
  position: absolute;
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 100000;
}

/* Arrow */
.tooltip::after {
  content: "";
  position: absolute;
  border: 6px solid transparent;
}

/* Top tooltip (appears above box) */
.tooltip.top {
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
}
.tooltip.top::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #111;
}

/* Bottom tooltip (appears below box) */
.tooltip.bottom {
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
}
.tooltip.bottom::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #111;
}

body:not(.modal-open) .tippy-box {
  display: none !important;
}

@media (max-width: 400px) {
  .triangle-layout {
    transform: scale(0.85);
  }
}
/* Tags container only takes middle width */
.middle {
  grid-column: 2 / 3;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Fixed tags container */
.tags-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 0;
}

.tags-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
}
.tags-strip::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.tag {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--color-white);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}
.tag:hover {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: scale(1.05);
}

.tag-active {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: scale(1.05);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}
.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}
.scroll-btn.left {
  left: 5px;
}
.scroll-btn.right {
  right: 5px;
}

/* Shadow fade effects */
.tags-container::before,
.tags-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.tags-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.tags-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
  opacity: 1;
  transition: opacity 0.3s;
}

.shimmer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 1rem auto;
  justify-content: center;
}

.shimmer-card {
  width: 29%;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 10px;
  animation: pulse 1.5s infinite ease-in-out;
}

.shimmer-thumbnail {
  width: 100%;
  height: 180px;
  background: #e0e0e0;
  border-radius: 12px;
}

.shimmer-info {
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}

.shimmer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
}

.shimmer-lines {
  flex: 1;
}

.shimmer-line {
  height: 12px;
  background: #e0e0e0;
  margin-bottom: 6px;
  border-radius: 6px;
}

.shimmer-line.short {
  width: 60%;
}

.shimmer-line.long {
  width: 90%;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .shimmer-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .shimmer-card {
    width: 95%;
  }
}

/* Skeleton container */
.skeleton-feed {
  background: var(--color-white);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: skeleton-loading 1.5s infinite linear;
}

/* Gray shimmer effect */
@keyframes skeleton-loading {
  0% {
    background-color: hsl(200, 20%, 90%);
  }
  50% {
    background-color: hsl(200, 20%, 95%);
  }
  100% {
    background-color: hsl(200, 20%, 90%);
  }
}

/* Circle placeholders */
.skeleton-circle {
  border-radius: 50%;
  background: hsl(200, 20%, 85%);
}
.skeleton-circle.small {
  width: 24px;
  height: 24px;
}
.skeleton-circle.tiny {
  width: 16px;
  height: 16px;
}
.skeleton-circle {
  width: 40px;
  height: 40px;
}

/* Rectangular placeholders */
.skeleton-rect {
  border-radius: 8px;
  background: hsl(200, 20%, 85%);
  margin: 4px 0;
}
.skeleton-rect.big {
  aspect-ratio: 16/9;
}
.skeleton-rect.short {
  width: 60%;
  height: 16px;
}
.skeleton-rect.tiny {
  width: 40%;
  height: 12px;
}
.skeleton-rect.tiny-text {
  width: 120px;
  height: 12px;
}

/* Inherit layout from feed */
.skeleton-feed .head {
  display: flex;
  justify-content: space-between;
}
.skeleton-feed .user {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Dark background for feed */
.skeleton-feed {
  background: #25282a;
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Circle placeholders */
.skeleton-circle {
  border-radius: 50%;
  background: #30393d;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}
.skeleton-circle.small {
  width: 24px;
  height: 24px;
}
.skeleton-circle.tiny {
  width: 16px;
  height: 16px;
}
.skeleton-circle {
  width: 40px;
  height: 40px;
}

/* Rectangular placeholders */
.skeleton-rect {
  border-radius: 8px;
  background: #30393d;
  margin: 4px 0;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}
.skeleton-rect.big {
  aspect-ratio: 16/9;
}
.skeleton-rect.short {
  width: 100px;
  height: 14px;
}
.skeleton-rect.tiny {
  width: 60px;
  height: 12px;
}
.skeleton-rect.tiny-text {
  width: 120px;
  height: 12px;
}

/* Info section beside avatar */
.skeleton-feed .user .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 4px;
}

/* Layouts */
.skeleton-feed .head {
  display: flex;
  justify-content: space-between;
}
.skeleton-feed .user {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.skeleton-feed .photo {
  margin: 0.7rem 0;
  overflow: hidden;
  border-radius: var(--card-border-radius);
}
.skeleton-feed .interaction-buttons {
  display: flex;
  gap: 5px;
}
.skeleton-feed .action-buttons {
  display: flex;
  justify-content: space-between;
  margin: 0.6rem;
}
.skeleton-feed .liked-by {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Animation shimmer between both colors */
@keyframes skeleton-loading {
  0% {
    background-color: #30393d;
  }
  50% {
    background-color: #25282a;
  }
  100% {
    background-color: #30393d;
  }
}
