/* ---------------- Reset toàn bộ ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------- Body & HTML ---------------- */
html, body {
    font-family: Arial, sans-serif;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------------- Header ---------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000000;
    color: #fff;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center; /* căn giữa container */
    align-items: center;
}
/* Container căn giữa header giống main.container */
.site-header .header-inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo trái, menu phải */
    padding: 0 15px;
}
/* Logo */
.site-header h1 {
    margin: 0;
    flex-shrink: 0;
}
.site-header h1 a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

/* Menu và tin nhắn */
.menu-right {
    display: flex;
    align-items: center;
}

/* Menu */
.main-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}
.main-nav a:hover {
    text-decoration: underline;
}

/* Tin nhắn */
.header-right a.unread {
    color: #ffd700;
    font-weight: bold;
    margin-left: 15px;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center; /* căn giữa toàn bộ body */
}



/* Main container */
main.container {
    flex: 1 0 auto;
    margin-top: 60px; /* tránh che bởi header */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: #333;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ---------------- Card ---------------- */
.card {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ---------------- Table ---------------- */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

/* ---------------- Avatar ---------------- */
.user-avatar {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
}

/* ---------------- Flash Message ---------------- */
.flash {
    background: #d4edda;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ---------------- Album Grid ---------------- */
.post-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.post-photos-grid img {
    width: 100%;
    border-radius: 5px;
    display: block;
}
.photo-full {
    max-width: 500px;  /* tối đa 500px trên PC */
    width: 100%;       /* co giãn theo container */
    height: auto;      /* giữ tỷ lệ */
    display: block;
    margin: 10px auto; /* căn giữa */
    border-radius: 5px;
}
/* 1 ảnh lớn */
.album-photo-single {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
}

/* Nhiều ảnh: grid nhỏ */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
}
.album-grid img.album-photo-grid {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* Responsive: điện thoại */
@media (max-width: 600px) {
    .album-grid img.album-photo-grid {
        height: 80px;
    }
}
.main-wrapper {
    width: 100%;           /* co giãn toàn bộ chiều ngang */
    max-width: 1200px;     /* giới hạn chiều rộng tối đa */
    margin: 0 auto;        /* căn giữa container */
    padding: 10px;         /* khoảng cách bên trong */
    box-sizing: border-box;
}
.status-item {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}
.status-header {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.status-content {
    font-size: 16px;
    line-height: 1.4;
}
.status-time {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}
/* Style cho video chi tiết */
.video-detail {
  max-width: 720px;
  margin: 20px auto;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.video-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.video-player {
  text-align: center;
}

.video-player video {
  width: 100%;
  max-height: 420px;
  border-radius: 6px;
}
/* Trường nhập text / textarea */
input, textarea {
    border-radius: 8px;
        border: 1px solid #ccc;
            padding: 8px 12px;
                outline: none;
                }

                /* Nút gửi */
                .sent_btn {
                    background-color: #007BFF;
                        color: white;
                            border-radius: 20px;
                                padding: 8px 20px;
                                    border: none;
                                        cursor: pointer;
                                        }