#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Giúp video không bị méo */
  z-index: -1; /* Đẩy video xuống dưới cùng */
}

body {
  margin: 0;
  padding: 0;
  background: transparent; /* Quan trọng: Xóa màu nền hoặc ảnh cũ */
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
}

/* ===== Container ===== */

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* ===== Glass Card ===== */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(180%) brightness(1.1);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

/* ===== Headings ===== */

h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(0, 150, 255, 0.4);
}

h2 {
  margin: 10px 0 20px;
}

/* ===== Forms ===== */

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 15px;
  background: rgba(245, 248, 255, 0.9);
  color: #000;
  box-sizing: border-box;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.button {
  width: 100%;
  padding: 10px;
  background: #111;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background: #222;
  transform: translateY(-2px);
}

/* ==== music control ===== */

.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.music-control svg {
    width: 26px;
    height: 26px;
    fill: #e3e3e3;
}

/* ===== assets ===== */

#enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(50px); 
    -webkit-backdrop-filter: blur(50px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.enter-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 8px;
    color: white;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: breathing 2.5s infinite ease-in-out;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

#enter-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
    transform: scale(1.2);
}

/* ===== Table ===== */

.video-table {
  width: 100%;
  border-collapse: collapse;
}

.video-table th,
.video-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.video-table tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.video-table a {
  color: #5dade2;
  text-decoration: none;
}

.video-table a:hover {
  text-decoration: underline;
}

/* ===== Code ===== */

.command-box pre,
.code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.command-box pre {
  font-family: "Fira Code", monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Article ===== */

.article-preview h2 a {
  color: white;
  text-decoration: none;
}

.article-preview h2 a:hover {
  text-decoration: underline;
}

.read-more {
  color: #5dade2;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.article-content {
  line-height: 1.7;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== Video Embed ===== */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 25px 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* ===== Links Buttons ===== */

.links-section {
  margin-top: 35px;
}

.links-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-btn {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(150%);
  transition: 0.3s;
}

.link-btn:hover {
  box-shadow:
    0 0 15px #00f2fe,
    0 0 30px #4facfe;
  transform: translateY(-3px);
}

/* ===== Delete Button ===== */

.delete-btn {
  background: linear-gradient(135deg, #ff4b4b, #c40000);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.delete-btn:hover {
  box-shadow: 0 0 12px #ff4b4b;
}

/* ===== Add Link Button ===== */

.add-link-btn {
  margin-bottom: 15px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.add-link-btn:hover {
  box-shadow: 0 0 15px #4facfe;
}

.link-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.link-row input {
  flex: 1;
}

/* ===== About Page ===== */

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.profile-content {
  text-align: center;
  padding: 50px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(160%) brightness(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(160%) brightness(1.1);
  
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.profile-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.avatar {
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
}

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

.profile-content h3 {
  font-weight: 400;
  margin-bottom: 20px;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 8px rgba(0, 242, 254, 0.6),
    0 0 14px rgba(79, 172, 254, 0.4);
}

/* ===== Social ===== */

.social-icon {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  margin-right: 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

.social-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  transition: 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

/* ===== Neon riêng từng nền tảng ===== */

.youtube:hover {
  box-shadow:
    0 0 15px #ff0000,
    0 0 30px #ff0000;
}
.youtube:hover svg {
  fill: #ff0000;
}

.github:hover {
  box-shadow:
    0 0 15px #ffffff,
    0 0 30px #ffffff;
}
.github:hover svg {
  fill: #ffffff;
}

.discord:hover {
  box-shadow:
    0 0 15px #5865f2,
    0 0 30px #5865f2;
}
.discord:hover svg {
  fill: #5865f2;
}

.facebook:hover {
  box-shadow:
    0 0 15px #1877f2,
    0 0 30px #1877f2;
}
.facebook:hover svg {
  fill: #1877f2;
}

/* ===== Login ===== */

.login-wrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 360px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: none;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00f5ff, #0072ff);
  color: white;
  cursor: pointer;
}

.login-error {
  color: #ff4b4b;
  margin-bottom: 15px;
}
