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

html, body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;
  font-family: 'Poppins', sans-serif; 
  color: #f0f0f0;
  scrollbar-width: thin;
  scrollbar-color: #ffffff40 rgba(0,0,0,0.2);
}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.6);
}

.tab-container {
  width: 90%;
  max-width: 900px; 
  height: 85%;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  border-radius: 16px; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  overflow-y: auto;
  animation: slideUp 0.6s ease-out; 
}

h2 {
  margin: 0 0 20px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
}

p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 300;
}

.info-listings {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
}

.listing {
  margin: 8px 0;
  font-size: 18px;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.tab {
  flex: 1;
  padding: 0.8rem 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #bbb;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px); 
}

.tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: fit-content;
  min-width: 200px;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px); 
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  grid-auto-flow: dense; 
}

.grid-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: auto; 
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.03); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.grid-item img,
.grid-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
}
.grid-item video { max-height: 360px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

@media (min-width: 600px) {
  .grid-item.orientation-landscape { grid-column: span 2; }
  .grid-item.orientation-portrait { grid-row: span 2; }
}

.split-layout {
  display: flex;
  gap: 2rem;
  margin-top: 15px;
  align-items: flex-start;
  flex-wrap: wrap; 
}

.list-pane {
  flex: 1;
  min-width: 250px;
}

.preview-pane {
  flex: 1.5;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.list-btn {
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.list-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.discord-embed {
  background: rgba(43, 45, 49, 0.9); 
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.social-links {
  max-height: 400px; 
  overflow-y: auto;
  padding-right: 10px;
  
  mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%
  );
}

.list-btn {
  display: flex;
  align-items: center;
  gap: 15px; 
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.char-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%; 
  object-fit: cover;
  background: #ffffff00; 
  flex-shrink: 0;
}

.embed-content {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.social-links::-webkit-scrollbar,
.embed-content::-webkit-scrollbar {
  width: 3px;
}

.embed-color-pill {
  width: 6px;
  background-color: #5865F2; 
  flex-shrink: 0;
}

.embed-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.embed-content h3 {
  font-size: 20px;
  color: #fff;
  margin: 0;
}

.embed-content p {
  font-size: 14px;
  color: #dbdee1;
  margin: 0;
  line-height: 1.5;
}

.embed-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 5px;
}

.embed-btn {
  background: #5865F2; 
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  align-self: flex-start; 
  transition: background 0.2s;
  margin-top: 5px;
}

.embed-btn:hover {
  background: #4752c4;
}
