.brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #000;
  color: #fff;
}

.app {
  max-width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
}

.auth-box {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  animation: slideUp 0.5s ease-out;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-box h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.tab-btn.active {
  opacity: 1;
  border-bottom: 2px solid #fe2c55;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-form button {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  background: #fe2c55;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-form button:hover {
  background: #e61e4d;
}

.hidden {
  display: none;
}

header {
  padding: 10px 0;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
}

header:before {
  content: 'TICKTOCK';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 15px;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

header nav {
  display: none;
}

.feed {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  padding-top: 50px;
  padding-bottom: 60px;
}

.video-container {
  height: calc(100vh - 110px);
  scroll-snap-align: start;
  position: relative;
}

.video-player {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-actions {
  position: relative;
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.video-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.video-actions button:hover {
  color: #fe2c55;
}

.video-actions i {
  font-size: 24px;
}

.video-actions span {
  font-size: 12px;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 20px;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.username {
  font-weight: 600;
}

.follow-btn {
  background: #fe2c55;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

.caption {
  margin-bottom: 10px;
}

.music {
  display: flex;
  align-items: center;
  gap: 5px;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  padding: 10px 0;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav a {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.bottom-nav i {
  font-size: 20px;
}

.bottom-nav .create {
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  width: 44px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.bottom-nav .create i {
  font-size: 18px;
}

.video-player .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.video-player .play-overlay i {
  font-size: 64px;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.video-player .play-overlay:hover i {
  opacity: 1;
}

.video-player .play-overlay.hidden {
  display: none;
}

.post-container {
  min-height: 300px;
  background: #1a1a1a;
  margin: 10px;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  animation: fadeIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-content {
  font-size: 1.5rem;
  margin: 20px 0;
  word-wrap: break-word;
}

.page {
  padding: 70px 20px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  display: none;
}

.page.active {
  display: block;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  background: linear-gradient(45deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.1));
  padding: 20px;
  border-radius: 15px;
  animation: slideIn 0.3s ease-out;
  text-align: center;
}

.message h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.message p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.message .disclaimer {
  margin-top: 15px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.create-post-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  display: none;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
}

.create-post-modal input,
.create-post-modal textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.create-post-modal textarea {
  height: 150px;
  resize: none;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.modal-buttons .cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-buttons .post {
  background: #fe2c55;
  color: #fff;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(45deg, #fe2c55, #25f4ee);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.profile-avatar i {
  font-size: 40px;
  color: #fff;
}

.username-form {
  width: 100%;
  max-width: 300px;
}

.username-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.username-form button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #fe2c55;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding: 20px;
}

.home-logo {
  width: 250px;
  height: auto;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
