* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: "Doto", sans-serif;
  background: #151515;
  color: #c9d1d9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  min-height: 100vh;
}

.content-grid {
  display: grid;
  grid-template-columns: 500px 500px;
  grid-template-rows: auto;
  gap: 20px;
  align-items: start;
}

.left-column {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Card */
.user-card {
  position: relative;
  overflow: hidden;
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 96, 96, 0.6);
  border-radius: 12px;
  padding: 24px;
  width: 500px;
  height: 295px;
}

.card-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: #c93837;
  z-index: 0;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.91);
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 1;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.status-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgb(30, 35, 45);
  border: 3px solid rgba(30, 35, 45, 0.9);
  box-sizing: content-box;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.username-container {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  min-width: 0;
  position: relative;
}

.user-handle {
  font-size: 20px;
  font-weight: 600;
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.user-handle .username {
  color: #d3dfec;
  font-size: 16px;
  font-weight: 400;
}

.activities-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  justify-content: center;
  width: 100%;
}

.time-display {
  font-family: "Doto", sans-serif;
  font-size: 13px;
  color: #d3dfec;
  background: #252a35;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(60, 65, 75, 0.7);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.clock-symbol {
  color: #8b949e;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.roblox-symbol {
  color: #8b949e;
  fill: #8b949e;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.playing-display {
  font-size: 13px;
  color: #d3dfec;
  background: #252a35;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(60, 65, 75, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playing-text {
  color: #d3dfec;
}

.listening-display {
  font-size: 13px;
  color: #d3dfec;
  background: #252a35;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(60, 65, 75, 0.7);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listening-text {
  color: #d3dfec;
}

.user-status {
  color: #c9d1d9;
  font-size: 14px;
  margin-bottom: 8px;
  min-height: 20px;
  word-break: break-word;
}

/* About Card */
.about-card {
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 96, 96, 0.6);
  border-radius: 12px;
  padding: 24px;
  width: 500px;
  height: 295px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #c9d1d9;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.intro-section {
  flex: 1;
  margin-bottom: 20px;
}

.intro-section p {
  font-size: 14px;
  line-height: 1.5;
  color: #d3dfec;
}

.social-section {
  border-top: 1px solid rgba(96, 96, 96, 0.6);
  padding-top: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-link {
  color: #8b949e;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(60, 65, 75, 0.3);
}

.social-link:hover {
  color: #d3dfec;
  background: rgba(60, 65, 75, 0.5);
}

/* Movies Card */
.movies-card {
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 96, 96, 0.6);
  border-radius: 12px;
  padding: 24px;
  width: 500px;
  height: 610px;
  display: flex;
  flex-direction: column;
}

.movies-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.movies-content::-webkit-scrollbar {
  width: 6px;
}

.movies-content::-webkit-scrollbar-track {
  background: rgba(60, 65, 75, 0.3);
  border-radius: 3px;
}

.movies-content::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.4);
  border-radius: 3px;
}

.movies-content::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 148, 158, 0.6);
}

.movie-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(60, 65, 75, 0.3);
  border: 1px solid rgba(96, 96, 96, 0.4);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.movie-item:hover {
  background: rgba(60, 65, 75, 0.5);
}

.movie-poster {
  width: 60px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.movie-info {
  flex: 1;
  min-width: 0;
}

.movie-title {
  font-size: 14px;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-year-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.movie-year {
  font-size: 12px;
  color: #8b949e;
}

.movie-rating {
  font-size: 12px;
  color: #ffd700;
}

.movie-date {
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 4px;
}

.movie-review {
  font-size: 12px;
  color: #d3dfec;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loading-movies {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8b949e;
  font-size: 14px;
}

.no-movies {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8b949e;
  font-size: 14px;
  text-align: center;
}

.loading-screen {
  color: #c9d1d9;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 25, 25, 1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen span {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Responsive Design */
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    justify-items: center;
  }

  .left-column {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    align-items: center;
  }

  .right-column {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    align-items: center;
  }

  .user-card,
  .about-card,
  .movies-card {
    width: 100%;
    max-width: 500px;
  }

  .movies-card {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .main-wrapper {
    padding: 15px;
  }

  .content-grid {
    gap: 15px;
  }

  .left-column {
    gap: 15px;
  }

  .right-column {
    gap: 15px;
  }

  .user-card,
  .about-card {
    padding: 20px;
    height: auto;
    min-height: 295px;
  }

  .movies-card {
    height: 350px;
    min-height: 350px;
    padding: 20px;
  }

  .profile-content {
    margin-top: 25px;
  }

  .avatar-container {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }

  .avatar-frame {
    width: 140px;
    height: 140px;
  }

  .user-handle {
    font-size: 18px;
  }

  .user-handle .username {
    font-size: 14px;
  }

  .activities-row {
    flex-direction: column;
    gap: 6px;
  }

  .time-display,
  .playing-display,
  .listening-display {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .playing-display {
    max-width: 100%;
  }

  .card-title {
    font-size: 16px;
  }

  .intro-section p {
    font-size: 13px;
  }

  .social-icons {
    gap: 8px;
  }

  .social-link {
    width: 32px;
    height: 32px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .movie-item {
    padding: 10px;
    gap: 10px;
  }

  .movie-poster {
    width: 50px;
    height: 75px;
  }

  .movie-title {
    font-size: 13px;
  }

  .movie-review {
    font-size: 11px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 400px) {
  .main-wrapper {
    padding: 10px;
  }

  .user-card,
  .about-card,
  .movies-card {
    padding: 15px;
  }

  .movies-card {
    height: 300px;
    min-height: 300px;
  }

  .avatar-container {
    width: 80px;
    height: 80px;
  }

  .avatar-frame {
    width: 120px;
    height: 120px;
  }

  .user-handle {
    font-size: 16px;
  }

  .user-handle .username {
    font-size: 13px;
  }

  .time-display,
  .playing-display,
  .listening-display {
    font-size: 12px;
    padding: 3px 6px;
  }

  .card-banner {
    height: 90px;
  }

  .profile-content {
    margin-top: 20px;
  }

  .movie-item {
    padding: 8px;
    gap: 8px;
  }

  .movie-poster {
    width: 45px;
    height: 67px;
  }

  .movie-title {
    font-size: 12px;
  }

  .movie-year-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* Small height devices */
@media (max-height: 700px) {
  .main-wrapper {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  body {
    overflow: auto;
  }
}
