@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css'); 

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

body.fade-out {
  opacity: 0 !important;
}

body.page-fade-in {
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}
body.page-fade-in.page-loaded {
    opacity: 1;
}

body.scrollable-page {
  font-family: 'Outfit', sans-serif;
  background-color: #000000;
  color: #e0e0e0;
  line-height: 1.7;
  display: block;
  min-height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #ff0077;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e6006b;
}

body.scrollable-page h1,
body.scrollable-page h2,
body.scrollable-page h3 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.preloader-logo {
  position: absolute;
  width: clamp(120px, 15vw, 180px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.preloader-logo.animate-logo {
  animation: logo-intro-sequence 3.0s cubic-bezier(0.68, -0.25, 0.265, 1.25) forwards;
}

@keyframes logo-intro-sequence {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  26% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    top: clamp(10px, 2.5vh, 20px);
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

.top-logo-container,
.carousel-navigation,
.poster-carousel-container-3d {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out;
}

body.loading-done .top-logo-container,
body.loading-done .carousel-navigation,
body.loading-done .poster-carousel-container-3d {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.2s;
}

body.loading-done .preloader {
  opacity: 0;
  pointer-events: none;
}

.top-logo-container {
  position: fixed;
  top: clamp(10px, 2.5vh, 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.top-logo-container .logo {
  width: clamp(120px, 15vw, 180px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 0, 119, 0.5));
}

body.login-animation-active .poster-carousel-container-3d,
body.login-animation-active .carousel-navigation {
  transition: opacity 0.4s ease-out;
  opacity: 0;
  pointer-events: none;
}

.top-logo-container.animating {
  z-index: 10000;
}

@keyframes logo-login-transition {
  0% {
    top: clamp(10px, 2.5vh, 20px);
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  60% {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.top-logo-container.animate-logo-on-login {
  animation: logo-login-transition 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-navigation {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(10px, 4vw, 50px);
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.carousel-arrow {
  background-color: rgba(255, 0, 119, 0.35);
  color: white;
  border: 1px solid rgba(255,0,119,0.5);
  border-radius: 50%;
  width: clamp(40px, 6vw, 60px);
  height: clamp(40px, 6vw, 60px);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 0, 119, 0.5);
  pointer-events: auto;
}

.carousel-arrow:hover {
  background-color: rgba(255, 0, 119, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 119, 0.7);
}
.carousel-arrow:active {
  transform: scale(1.0);
}

.poster-carousel-container-3d {
  width: 100%;
  margin-top: clamp(30px, 5vh, 50px);
  height: clamp(50vh, 65vh, 750px);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: clamp(1000px, 150vw, 3500px);
  perspective-origin: center center;
  overflow: visible;
}

.poster-carousel-3d {
  position: relative;
  width: var(--card-effective-width, 500px);
  height: var(--card-effective-height, 750px);
  transform-style: preserve-3d;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

:root {
  --card-base-width: clamp(240px, 23vw, 380px);
  --card-base-height: calc(var(--card-base-width) * 1.5);
}

.poster-carousel-3d .poster-card {
  position: absolute;
  width: var(--card-base-width);
  height: var(--card-base-height);
  left: calc(50% - (var(--card-base-width) / 2));
  top: calc(50% - (var(--card-base-height) / 2));
  border-radius: clamp(15px, 2vw, 25px);
  overflow: hidden;
  box-shadow:
    0 0 7px rgba(255, 0, 119, 0.9),
    0 0 15px rgba(255, 0, 119, 0.7),
    0 0 25px rgba(255, 0, 119, 0.5),
    0 0 40px rgba(255, 0, 119, 0.3),
    0px clamp(5px, 1vw, 10px) clamp(10px, 2vw, 20px) -clamp(5px, 1vw, 8px) rgba(0, 0, 0, 0.4),
    0px 0px clamp(4px, 0.8vw, 8px) rgba(255, 0, 119, 0.15) inset;
  transition: transform 1s ease-out, opacity 0.8s ease-out, box-shadow 0.4s ease;
  cursor: default;
  transform-style: preserve-3d;
  background-color: #0c0c0c;
  border: 1px solid rgba(255, 0, 119, 0.5);
}

.poster-carousel-3d .poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(clamp(15px, 2vw, 25px) - 3px);
}

.flip-card {
   backface-visibility: hidden;
}

.poster-carousel-3d .flip-card-front,
.poster-carousel-3d .flip-card-back {
   border: 1px solid rgba(255, 0, 119, 0.3);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3vw, 30px) clamp(25px, 3.5vw, 35px);
  box-sizing: border-box;
}

.flip-card-front {
  background-color: #000000;
  color: white;
  z-index: 2;
}

.flip-card-back {
  background-color: #000000;
  color: white;
  transform: rotateY(180deg);
  z-index: 1;
}

.login-box-internal {
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: white;
  opacity: 0.7;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.login-box-internal.interactive {
  pointer-events: auto;
  opacity: 1;
}

.login-box-internal h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: clamp(15px, 3vh, 25px);
}

.login-box-internal input {
  width: 100%;
  padding: clamp(12px, 2vh, 18px) clamp(15px, 2.5vw, 20px);
  margin-bottom: clamp(12px, 2vh, 20px);
  border-radius: clamp(6px, 1vw, 8px);
  border: 1px solid #555;
  background-color: rgba(35, 35, 40, 0.9);
  color: white;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.login-box-internal input:focus {
  border-color: #ff0077;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 0, 119, 0.5);
}
.login-box-internal input::placeholder {
    color: #b0b0b0;
}

.login-box-internal .login-button-internal,
.login-box-internal .secondary-button-internal {
  width: 100%;
  padding: clamp(12px, 2vh, 18px);
  margin-bottom: clamp(8px, 1.5vh, 12px);
  border-radius: clamp(6px, 1vw, 8px);
  font-weight: bold;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-box-internal .login-button-internal {
  background-color: #ff0077;
  color: white;
  border: none;
}
.login-box-internal .login-button-internal:hover {
  background-color: #e6006b;
  transform: scale(1.03);
}

.login-box-internal .secondary-button-internal {
  background-color: transparent;
  border: 2px solid #ff0077;
  color: #ff0077;
}
.login-box-internal .secondary-button-internal:hover {
  background-color: rgba(255, 0, 119, 0.2);
  color: #ff0077;
}

.status-message {
  width: calc(100% - clamp(20px, 4vw, 40px));
  max-width: 400px;
  padding: clamp(10px, 1.8vh, 14px) clamp(15px, 2.5vw, 20px);
  text-align: center;
  border-radius: 6px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin: 15px auto;
  position: relative;
  z-index: 5;
}
.flip-card .status-message {
    position: absolute;
    bottom: clamp(15px, 2.5vh, 25px);
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - clamp(40px, 6vw, 60px));
    margin: 0;
}
.flip-card .status-message.show {
    transform: translateX(-50%) translateY(0);
}
.profile-edit-form-container .status-message {
    margin-top: 15px;
    margin-bottom: 0;
    position: relative;
    transform: translateY(0);
}

.status-message.success {
  background-color: #3ddc84;
  border-left: 4px solid #2ead67;
}
.status-message.error {
  background-color: #ff4d4f;
  border-left: 4px solid #d9363e;
}
.status-message.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}
.status-message.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.scrollable-page h1 {font-size: clamp(2rem, 3.5vw, 2.5rem); margin-bottom: 1rem;}
body.scrollable-page h2 {font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; text-align: center;}
body.scrollable-page h3 {font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.75rem;}

.main-nav {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.nav-container {display: flex; justify-content: space-between; align-items: center;}

.nav-logo-img-link {
  display: inline-block;
  line-height: 0;
}
.nav-logo-img {
  height: 75px;
  width: auto;
  max-width: 220px;
  filter: drop-shadow(0 0 8px rgba(255, 0, 119, 0.4));
  transition: filter 0.3s ease;
}
.nav-logo-img:hover {
  filter: drop-shadow(0 0 12px rgba(255, 0, 119, 0.6));
}
.nav-logo-text-fallback {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: none;
}
.nav-logo-text-fallback:hover {
    color: #ff0077;
}

.nav-links {display: flex; align-items: center;}
.nav-links a {color: #e0e0e0; margin-left: 30px; font-size: 1.05rem; font-weight: 400; position: relative; padding: 0.5em 0;}
.nav-links a::after {content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #ff0077; transition: width 0.3s ease;}
.nav-links a:hover::after, .nav-links a.active::after {width: 100%;}
.nav-links a:hover, .nav-links a.active {color: #ffffff;}

.nav-mobile-toggle {display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-icon {display: block; width: 25px; height: 2px; background-color: #fff; position: relative; transition: background-color 0.3s ease;}
.hamburger-icon::before, .hamburger-icon::after {content: ''; position: absolute; left: 0; width: 100%; height: 2px; background-color: #fff; transition: transform 0.3s ease, top 0.3s ease;}
.hamburger-icon::before {top: -8px;}
.hamburger-icon::after {top: 8px;}
.nav-mobile-toggle.active .hamburger-icon {background-color: transparent;}
.nav-mobile-toggle.active .hamburger-icon::before {transform: rotate(45deg); top: 0;}
.nav-mobile-toggle.active .hamburger-icon::after {transform: rotate(-45deg); top: 0;}

.hero-section {
  background: linear-gradient(145deg, #181818 0%, #080808 50%, #000000 100%);
  padding: clamp(1.5rem, 3vh, 2rem) 0;
  text-align: center;
  color: #fff;
  border-bottom: none;
  min-height: 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #ff0077;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 0, 119, 0.8), 0 0 12px rgba(255, 0, 119, 0.5);
}

.hero-logo {
    width: clamp(100px, 12vw, 150px);
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 0, 119, 0.6));
}

.hero-content {max-width: 800px;}
.hero-content h1 {text-shadow: 0 0 20px rgba(255, 0, 119, 0.4); margin-bottom: 1rem;}
.hero-content p {font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2rem; color: #b0b0c0; font-weight: 300; max-width: 650px; margin-left: auto; margin-right: auto;}

.cta-button, .cta-button-outline, .cta-button-danger, .cta-button-secondary {
    padding: 0.8em 1.8em;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
    margin: 5px;
}
.cta-button {
    background-color: #ff0077;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 0, 119, 0.35);
}
.cta-button:hover {
    background-color: #e6006b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 119, 0.5);
}
.cta-button-outline {
    background-color: transparent;
    border: 1px solid #ff0077;
    color: #ff0077;
}
.cta-button-outline:hover {
    background-color: rgba(255, 0, 119, 0.1);
    color: #ff0077;
    transform: translateY(-2px);
}
.cta-button-danger { 
    background-color: #93143c;
    color: white;
    border-color: #93143c;
}
.cta-button-danger:hover {
    background-color: #7a0f30;
    transform: translateY(-2px);
}
.cta-button-secondary {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}
.cta-button-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.trending-section, .search-section, .profile-section {
    padding: clamp(4rem, 10vh, 7rem) 0;
    position: relative;
}

.trending-section::after, .search-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #ff0077;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 0, 119, 0.8), 0 0 12px rgba(255, 0, 119, 0.5);
}

.trending-section { background-color: #050505; }
.search-section { background-color: #030303; }
.profile-section { background-color: #080808; }

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.gallery .empty-gallery-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    padding: 3rem 0;
}

.ai-card {
  display: block;
  position: relative; 
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  width: 280px;
  height: 420px; 
  color: #fff; 
}

.ai-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5),
              0 0 18px rgba(255, 0, 119, 0.8),
              0 0 40px rgba(255, 0, 119, 0.6),
              0 0 70px rgba(255, 0, 119, 0.4);
}

.ai-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.ai-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #e0e0e0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 1) 100%);
  opacity: 0;
  transform: translateY(25%);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 60%;
}

.ai-card:hover .ai-card-content {
  opacity: 1;
  transform: translateY(0);
}

.ai-card-content h3 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: 1.2rem;
}

.ai-card-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.delete-creation-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(200, 30, 30, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 5; 
}

.delete-creation-btn:hover {
    background: rgb(255, 0, 0);
    transform: scale(1.1);
}

.card-info-confirm {
    display: none; 
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-bottom: 2rem;
}

.card-info-confirm p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirm-actions button {
    padding: 0.5em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #fff;
    transition: all 0.2s ease;
}

.confirm-delete-btn {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}
.confirm-delete-btn:hover {
    background-color: #218838;
}

.cancel-delete-btn {
    background-color: transparent;
    color: white;
}
.cancel-delete-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ai-card.confirm-delete .ai-card-content {
    opacity: 1;
    transform: translateY(0);
}
.ai-card.confirm-delete .card-info-default,
.ai-card.confirm-delete .delete-creation-btn {
    display: none; /
}
.ai-card.confirm-delete .card-info-confirm {
    display: flex; 
}

.search-box-futuristic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 119, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(255, 0, 119, 0.7),
              0 0 20px rgba(255, 0, 119, 0.5),
              0 0 40px rgba(255, 0, 119, 0.3),
              inset 0 0 10px rgba(255, 0, 119, 0.2);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.search-box-futuristic input {flex-grow: 1; min-width: 250px; padding: 1rem 1.4rem; font-size: 1.05rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background-color: rgba(0,0,0,0.25); color: white; outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease;}
.search-box-futuristic input::placeholder {color: #a0a0a0;}
.search-box-futuristic input:focus {border-color: #ff0077; box-shadow: 0 0 0 3px rgba(255, 0, 119, 0.25);}
.search-box-futuristic button {padding: 1rem 1.8rem; background-color: #ff0077; color: white; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem;}
.search-box-futuristic button:hover {background-color: #e6006b; transform: scale(1.03);}

.main-footer {
  background-color: #000000;
  color: #888;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.9rem;
  border-top: none;
  position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #ff0077;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 0, 119, 0.8), 0 0 12px rgba(255, 0, 119, 0.5);
}

.profile-section .container {
    max-width: 1200px;
}
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ff0077;
    flex-wrap: wrap;
    gap: 20px;
}
.profile-avatar-container {
    margin-right: 30px;
    position: relative;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff0077;
    box-shadow: 0 0 15px rgba(255,0,119,0.3);
}
.profile-avatar-edit-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}
.profile-avatar-edit-button:hover {
    background-color: rgba(255,0,119,0.7);
}

.profile-info h1 {
    margin-bottom: 1.5rem; 
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.profile-info p {
    display: none;
}
.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: clamp(25px, 4vw, 35px);
    border: 1px solid #ff0077;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 12px rgba(255, 0, 119, 0.6), 0 0 25px rgba(255, 0, 119, 0.4);
}

.profile-card h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 25px 0;
    text-align: center;
}

.info-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}
.info-field:last-of-type {
    border-bottom: none;
}
.info-label {
    color: #a0a0b0;
    font-weight: 500;
}
.info-value {
    color: #ffffff;
    font-weight: 400;
}

#profileEditForm input[type="text"],
#profileEditForm input[type="email"],
#profileEditForm input[type="password"] {
    width: 100%;
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.25);
    color: white;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}
#profileEditForm input:focus {
    border-color: #ff0077;
    box-shadow: 0 0 0 3px rgba(255, 0, 119, 0.25);
}
#profileEditForm .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-content {
    padding: 0;
}
.profile-content-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ff0077;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.profile-content-header h2 {
    margin: 0 0 15px 0;
}
.add-creation-btn {
    position: static;
    transform: none !important;
    margin: 0 !important;
}
.add-creation-btn:hover {
    transform: scale(1.05) !important;
}

.profile-card .hidden {
    display: none;
}

.upload-creation-container {
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid rgba(255, 0, 119, 0.6);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3),
                0 0 8px rgba(255, 0, 119, 0.5),
                0 0 20px rgba(255, 0, 119, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, padding 0.5s 0.2s ease-in-out, opacity 0.5s 0.2s ease-in-out, box-shadow 0.4s ease, border-color 0.4s ease;
}
.upload-creation-container.visible {
    max-height: 1500px;
    opacity: 1;
    padding: clamp(20px, 3vw, 30px);
}
.upload-creation-container .form-step,
.upload-creation-container .creation-form {
    margin-bottom: 25px;
}
.upload-creation-container .sub-form {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.upload-creation-container h3,
.upload-creation-container h4 {
    color: #ff0077;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 0, 119, 0.3);
}
.upload-creation-container h3 { font-size: 1.6rem; }
.upload-creation-container h4 { font-size: 1.4rem; margin-top: 0; border: none; padding: 0; margin-bottom: 15px; }
.upload-creation-container label {
    display: block;
    margin-bottom: 8px;
    color: #c0c0d0;
    font-weight: 500;
}
.upload-creation-container input[type="text"],
.upload-creation-container textarea,
.upload-creation-container select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.35);
    color: white;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.upload-creation-container input[type="text"]:focus,
.upload-creation-container textarea:focus,
.upload-creation-container select:focus {
    border-color: #ff0077;
    box-shadow: 0 0 0 3px rgba(255, 0, 119, 0.25);
}
.upload-creation-container textarea { resize: vertical; min-height: 80px; }
.upload-creation-container input[type="file"] {
    display: block;
    width: 100%;
    margin-bottom: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.3);
    background-color: rgba(0,0,0,0.2);
    color: #c0c0d0;
}

.progress-container {
    width: 100%;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.progress-container.hidden {
    display: none;
}
.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #ff0077;
    border-radius: 8px;
    transition: width 0.4s ease;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.upload-creation-container .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.creation-form.hidden,
.sub-form.hidden {
    display: none;
}

.season-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.season-selection select {
    flex-grow: 1;
    margin-bottom: 0;
}

.add-season-btn {
    background-color: transparent;
    color: #ff0077;
    border: 1px solid #ff0077;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.add-season-btn:hover {
    background-color: rgba(255, 0, 119, 0.15);
    color: #fff;
    transform: scale(1.1);
}

.upload-creation-container .season-selection select {
    width: auto;
}

.ai-card a {
  text-decoration: none;
  color: inherit;
}

.ai-card > a {
  display: block;
}

@media (max-width: 992px) {
    :root {
      --card-base-width: clamp(220px, 28vw, 350px);
    }
    .poster-carousel-container-3d {
      height: clamp(50vh, 65vh, 720px);
    }
}
@media (max-width: 768px) {
  html {font-size: 14px;}
  :root {
    --card-base-width: clamp(220px, 45vw, 300px);
  }
  .poster-carousel-container-3d {
    perspective: clamp(800px, 120vw, 2500px);
    height: clamp(55vh, 70vh, 800px);
    margin-top: clamp(15px, 3vh, 30px);
  }
  .nav-links {display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(5, 5, 5, 0.98); backdrop-filter: blur(10px); flex-direction: column; align-items: center; padding: 1rem 0; box-shadow: 0 10px 20px rgba(0,0,0,0.3);}
  .nav-links.active {display: flex; }
  .nav-links a {margin-left: 0; padding: 1rem 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05);}
  .nav-links a:last-child {border-bottom: none;}
  .nav-links a::after { display: none;}
  .nav-mobile-toggle {display: block; }

  .search-box-futuristic {flex-direction: column; padding: 1.5rem;}
  .search-box-futuristic input, .search-box-futuristic button {width: 100%;}
  .gallery {grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem;}

  .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-actions {
        justify-content: center;
    }
}
@media (max-width: 480px) {
  html {font-size: 13px;}
  :root {
    --card-base-width: clamp(180px, 60vw, 240px);
  }
  .top-logo-container .logo {width: clamp(100px, 22vw, 150px);}
  .carousel-arrow {width: clamp(30px, 8vw, 40px); height: clamp(30px, 8vw, 40px); font-size: clamp(0.7rem, 2.2vw, 1rem);}
  .poster-carousel-container-3d {
    perspective: clamp(600px, 100vw, 1500px);
    height: clamp(50vh, 65vh, 700px);
  }
  .nav-logo-img {
    height: 40px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: #101010;
  padding: 20px 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 119, 0.5);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: 950px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  color: #e0e0e0;
}

.modal-content h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    color: #ffffff;
}

.modal-content .video-player-wrapper video {
  width: 100%;
  border-radius: 8px;
  background-color: #000;
  margin-bottom: 20px;
}

.modal-content .video-details h2 {
    font-size: 1.2rem;
    color: #ff0077;
    text-align: left;
    margin-bottom: 10px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 2.8rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.close-button:hover {
  color: #fff;
  transform: scale(1.1);
}
