/* ==========================================================================
   VONGTIENPHONG (KAZE) - MASTER STYLESHEET (MASTER PROMPT V3 FINAL)
   Design System: Dark Glassmorphism + Background Mờ rgba(236, 236, 236, 0.59)
   ========================================================================== */

:root {
  --bg-dark: #1a1a2e;
  /* MÃ MÀU BẮT BUỘC CHUẨN GU KAZE */
  --bg-kaze-glass: rgba(236, 236, 236, 0.59);
  
  --primary: #ff007f;
  --primary-glow: rgba(255, 0, 127, 0.6);
  --secondary: #00d2ff;
  --secondary-glow: rgba(0, 210, 255, 0.6);
  --accent-purple: #7000ff;
  --accent-green: #00ff87;
  
  --text-dark: #0f172a;
  --text-muted: #334155;
  
  --font-main: 'Plus Jakarta Sans', Arial, sans-serif;
  --font-jp: 'M PLUS Rounded 1c', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
}

/* Reset cơ bản */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background: url(https://www.dmoe.cc/random.php) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-image 1s ease-in-out;
  color: var(--text-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(10, 14, 26, 0.5); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

/* ==========================================================================
   NAVBAR TRÊN CÙNG (KÍNH MỜ TỐI MÀU CHUẨN V3 FINAL)
   rgba(20, 25, 35, 0.6) + backdrop-filter: blur(10px)
   ========================================================================== */
.navbar-container {
  width: 90%;
  max-width: 900px;
  margin: 20px auto 25px auto;
  padding: 12px 25px;
  border-radius: var(--radius-full);
  background: rgba(20, 25, 35, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.brand-text {
  background: linear-gradient(90deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  display: inline-block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  margin-left: auto; /* Đẩy nav-menu về bên phải của brand */
}

.nav-item a, .nav-item button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-item a:hover, .nav-item button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-item a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.4), rgba(112, 0, 255, 0.4));
  border-color: rgba(255, 0, 127, 0.6);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

.nav-item button.btn-chat-nav {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(255, 0, 127, 0.25));
  border: 1px solid var(--secondary);
}

.nav-item button.btn-chat-nav:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 0 15px var(--secondary-glow);
  color: #000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px; /* Tăng khoảng cách rõ ràng trên PC, không bị ép sát nav-menu */
  flex-shrink: 0;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--secondary-glow);
}

/* ==========================================================================
   HIỆU ỨNG NEON TEXT (BẮT BUỘC THEO MASTER PROMPT)
   ========================================================================== */
.neon-text {
  background: linear-gradient(90deg, #ff007f, #7000ff, #00d2ff); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  animation: gradient_text 5s infinite; 
  text-transform: uppercase; 
  font-weight: 900;
  text-shadow: 0 0 5px rgba(255, 0, 127, 0.3);
}

@keyframes gradient_text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   KHUNG NỘI DUNG CHUẨN KAZE: RGBA(236, 236, 236, 0.59) KHÔNG DÙNG BACKDROP-FILTER
   ========================================================================== */
.content, .about-container, .content-guestbook { 
  max-width: 900px; 
  margin: 0 auto 50px auto; 
  padding: 30px; 
  border-radius: 10px; 
  background-color: var(--bg-kaze-glass); /* BẮT BUỘC CHUẨN MÀU FEN THÍCH */
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
  transition: box-shadow 0.8s ease;
  position: relative;
  z-index: 20;
}

.content:hover, .about-container:hover, .content-guestbook:hover { 
  box-shadow: 0px 0px 20px rgb(0, 162, 255); 
}

/* ==========================================================================
   HEADER SECTION - AVATAR 120PX & LỜI CHÀO FIX LỖI ĐÈ CHỮ TRIỆT ĐỂ
   ========================================================================== */
.header-section {
  position: relative;
  width: 100%;
  height: 140px;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Avatar trên PC: Kích thước 120px vừa vặn theo V3 Final */
.header-section img#userAvatar {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  display: block;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  position: absolute;
  z-index: 11;
  box-shadow: 0 0 20px rgba(0, 162, 255, 0.6);
  border: 3px solid rgba(0, 162, 255, 0.5);
  object-fit: cover;
  background-color: #121829;
}

.welcome-message {
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  font-weight: 800;
  line-height: 1.5;
  z-index: 10;
  pointer-events: none;
}

/* Trên PC: Avatar trượt sâu sang trái (-240px) */
.avatar-slide-pc { 
  transform: translateX(-240px) !important; 
}

/* Trên PC: Khung chữ nằm hoàn toàn bên phải (left: 42%), text-align: left => KHÔNG BAO GIỜ ĐÈ AVATAR */
.welcome-message-pc { 
  left: 40% !important;
  width: 58% !important; 
  text-align: left !important; 
  font-size: 1.15rem !important; 
  padding-left: 15px;
}

/* Trên Mobile: Avatar trượt trái thu nhỏ và mờ dần */
.avatar-slide-fade {
  transform: translateX(-120px) scale(0.4) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.welcome-message-mobile {
  width: 100% !important;
  left: 0 !important;
  transform: translateX(0) !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.45;
}

.color-text-1 {
  background: linear-gradient(90deg, #00FF87, #60EFFF, #00FF87);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient_text 3s ease infinite;
}

.color-text-2 {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dòng trạng thái Admin nối tiếp (Status 24h) */
.status-badge-intro {
  display: inline-block;
  background: linear-gradient(135deg, #ff0844 0%, #ff6b8b 100%);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(255, 8, 68, 0.5);
}

/* Profile details */
.content_l {
  text-align: center;
  margin-top: 15px;
}

.content_l h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #ff007f, #7000ff, #00d2ff, #ff007f);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient_text 5s ease-in-out infinite;
  font-family: var(--font-jp), var(--font-main);
}

.bio {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: 0.5px;
  display: block;
}

.bio-1 {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float_bio 3s ease-in-out infinite;
}

.bio-2 {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: float_bio 3s ease-in-out infinite 1.5s;
}

@keyframes float_bio {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Email Container */
.email-container {
  margin: 20px 0 15px 0;
  display: flex;
  justify-content: center;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  background-color: #ff1493;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.4s ease;
  overflow: hidden;
  max-width: 45px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

.email-btn i { font-size: 18px; min-width: 18px; }
.email-btn .email-text { opacity: 0; margin-left: 10px; transition: opacity 0.3s ease; }
.email-btn:hover {
  max-width: 320px;
  background-color: #e0115f;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.8);
}
.email-btn:hover .email-text { opacity: 1; }

.copyright {
  font-size: 14px;
  color: #4855EC;
  margin-top: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MẠNG XÃ HỘI (5 CỘT TRÊN PC & 2 CỘT TRÊN MOBILE - THẲNG HÀNG HOÀN TOÀN)
   ========================================================================== */
.link {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  justify-items: center;
}

.link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  width: 100%;
  height: 45px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.link a:hover {
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0px 0px 12px rgb(61, 196, 230);
  transform: translateY(-2px);
}

.facebook { background-color: #3b5998; }
.github { background-color: #333; }
.telegram { background-color: #0088cc; }
.tiktok { background-color: #010101; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.twitter { background-color: #111111; }
.spotify { background-color: #1db954; }
.reddit { background-color: #FF4500; }
.threads { background-color: #000000; }
.discord { background-color: #5865F2; }

/* ==========================================================================
   GUESTBOOK / KHUNG CHAT
   ========================================================================== */
.content-guestbook {
  display: none;
  border: 2px solid rgba(0, 210, 255, 0.4);
}

.gb-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(0,210,255,0.4);
  padding-bottom: 15px;
}

.gb-title-main {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.gb-stats-badge {
  font-size: 13px;
  color: #059669;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #10b981;
  font-weight: bold;
}

.auth-buttons button {
  background: rgba(0, 210, 255, 0.15);
  color: #0369a1;
  border: 1px solid #0284c7;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
  transition: 0.3s;
}

.auth-buttons button:hover {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 0 12px #0284c7;
}

.rank-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-right: 8px;
  text-transform: uppercase;
}

.rank-admin {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 8, 68, 0.8);
  border: 1px solid #ff4d6d;
}

.rank-member {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 198, 255, 0.8);
  border: 1px solid #00c6ff;
}

.rank-guest {
  background: rgba(0, 0, 0, 0.08);
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.gb-input, .gb-textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 162, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.gb-input:focus, .gb-textarea:focus {
  border-color: #0072ff;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.3);
  background: #ffffff;
}

.gb-textarea {
  resize: vertical;
  min-height: 85px;
}

.gb-btn {
  background: linear-gradient(90deg, #ff007f, #7000ff);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gb-btn:hover {
  box-shadow: 0 0 20px #ff007f;
  transform: translateY(-2px);
}

.gb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gb-msg-card {
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid #0072ff;
  border-top: 1px solid rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: 0.3s;
}

.gb-msg-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.gb-msg-card.is-reply {
  margin-left: 35px;
  border-left-color: #ff007f;
  background: rgba(255, 0, 127, 0.08);
}

.gb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gb-author {
  font-weight: bold;
  color: #0f172a;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.gb-time {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

.gb-text {
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
}

.reply-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  font-weight: bold;
}

.admin-table {
  width: 100%;
  color: #fff;
  text-align: left;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.admin-table th, .admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
  background: rgba(0,210,255,0.25);
  color: #00d2ff;
  border-top: 1px solid #00d2ff;
}

/* ==========================================================================
   MINI MUSIC WIDGET
   ========================================================================== */
.music-floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(20, 25, 35, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 99;
  transition: transform 0.3s ease;
}

.music-floating-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
}

.disc-cover {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111, #222);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  animation: spin-record 7s linear infinite;
  animation-play-state: paused;
  font-size: 0.85rem;
}

.disc-cover.playing { animation-play-state: running; }

@keyframes spin-record {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0.3;
}

.sound-wave span {
  width: 2.5px;
  background-color: var(--accent-green);
  border-radius: 2px;
  animation: bounce-bar 1s ease infinite alternate;
}

.sound-wave span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { height: 7px; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 14px; animation-delay: 0.4s; }

@keyframes bounce-bar {
  0% { height: 3px; }
  100% { height: 14px; }
}

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

.music-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.music-btn:hover {
  color: var(--secondary);
  transform: scale(1.15);
}

/* ==========================================================================
   ABOUT ME PAGE STYLING (THEO MASTER PROMPT V3 FINAL)
   ========================================================================== */
.about-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 2px dashed rgba(0, 162, 255, 0.3);
}

.about-avatar-col {
  text-align: center;
}

.about-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
  object-fit: cover;
  background-color: #121829;
}

.about-info-col h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.about-info-col h2 {
  font-size: 1.05rem;
  color: #e11d48;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-bio-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.info-table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.info-item {
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid var(--secondary);
  font-size: 0.88rem;
  color: #1e293b;
}

.info-item strong {
  color: #0369a1;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.about-sec-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 35px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  border-bottom: 2px solid rgba(0, 162, 255, 0.3);
  padding-bottom: 8px;
}

.about-sec-title i {
  color: var(--primary);
}

.anime-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.anime-box {
  background-color: rgba(15, 23, 42, 0.85);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 1px solid rgba(0, 162, 255, 0.3);
  padding: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.anime-box.is-clickable {
  cursor: pointer;
}

.anime-box:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #00d2ff;
  box-shadow: 0 12px 28px rgba(0, 210, 255, 0.25), 0 0 15px rgba(255, 0, 127, 0.2);
}

.anime-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.anime-watch-tag {
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.anime-box:hover .anime-watch-tag {
  background: #00d2ff;
  color: #0f172a;
  box-shadow: 0 0 8px #00d2ff;
}

.anime-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.anime-rep-text {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.anime-rep-text strong {
  color: #38bdf8;
}

.anime-waifu-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff007f, #ff6b8b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.anime-quote {
  font-size: 0.86rem;
  font-style: italic;
  color: #f1f5f9;
  border-left: 3px solid #00d2ff;
  padding: 6px 10px;
  margin-top: auto;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0 6px 6px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.skill-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-box-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--secondary);
}

.skill-box-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-box-card ul {
  list-style: none;
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-box-card ul li i {
  color: var(--primary);
  font-size: 0.75rem;
  margin-right: 6px;
}

.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.game-profile-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 162, 255, 0.35);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
  border-top: 3px solid #00d2ff;
}

.game-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.3);
}

.game-name-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.game-name-title i { color: var(--secondary); }

.game-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--secondary);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.game-detail-row {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 4px;
}

.game-detail-row strong { color: #1e293b; }

.project-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-item-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid var(--accent-purple);
}

.project-item-box h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.project-item-box p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

/* Global Footer */
.global-footer {
  text-align: center;
  padding: 20px;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 20;
}

/* ==========================================================================
   RESPONSIVE PE / MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .navbar-container {
    width: 95%;
    margin: 15px auto 20px auto;
    padding: 10px 14px;
    gap: 10px;
  }
  .nav-brand {
    font-size: 1rem;
    gap: 6px;
  }
  .nav-brand .brand-text { 
    font-size: 0.95rem; 
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav-menu {
    gap: 6px;
    margin-left: auto;
  }
  .nav-item a, .nav-item button { 
    padding: 6px 12px; 
    font-size: 0.82rem; 
    gap: 5px;
  }

  .content, .about-container, .content-guestbook { 
    margin: 0 15px 40px 15px; 
    padding: 20px 16px; 
  }
  
  .header-section { height: 95px; margin-bottom: 10px; } 
  .header-section img#userAvatar { width: 90px; height: 90px; border-radius: 45px; }
  
  /* ĐẢM BẢO TRÊN MOBILE AVATAR LUÔN TRƯỢT SANG TRÁI VÀ BIẾN MẤT HOÀN TOÀN KHÔNG BAO GIỜ ĐÈ CHỮ */
  .avatar-slide-fade,
  .avatar-slide-pc {
    transform: translateX(-150px) scale(0.3) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .welcome-message-mobile,
  .welcome-message-pc {
    left: 0 !important;
    width: 100% !important;
    transform: translateX(0) !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.45;
    padding-left: 0 !important;
  }
  
  .content_l { margin-top: 10px; }
  .content_l h2 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; } 
  .bio { font-size: 14px; margin: 4px 0; } 
  .email-container { margin: 15px 0 10px 0; }
  .copyright { font-size: 12px; margin-top: 10px; } 
  
  .link { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
  .link a { height: 38px; font-size: 14px; }
  
  .content-guestbook { padding: 18px 14px; }
  .gb-title-main { font-size: 16px; }

  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .info-table-grid { grid-template-columns: 1fr; }
  .anime-cards-grid { grid-template-columns: 1fr; }
  .skill-list-grid { grid-template-columns: 1fr; }
  .project-items-grid { grid-template-columns: 1fr; }

  .music-floating-widget {
    bottom: 14px;
    right: 14px;
    padding: 5px 10px 5px 6px;
  }
}

/* ==========================================================================
   RESPONSIVE CHO MÀN HÌNH SIÊU NHỎ (MOBILE < 520PX - NAVBAR 2 HÀNG THẲNG ĐẸP)
   ========================================================================== */
@media (max-width: 520px) {
  .navbar-container {
    padding: 10px 14px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    border-radius: 18px;
  }
  .nav-brand {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-left: 0;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
  }
  .nav-item {
    flex: 1;
    display: flex;
  }
  .nav-item a, .nav-item button {
    width: 100%;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.78rem;
    gap: 4px;
  }
}
