:root {
    --bg-color: #14110f; /* Tông xám ấm hoài niệm sâu lắng */
    --text-main: #ebdcd0; /* Màu cát nhạt ấm áp tràn đầy cảm xúc */
    --text-muted: #a6988f; /* Màu gỗ nhạt dịu dàng */
    --accent: #d4af37; /* Màu vàng champagne sang trọng */
    --accent-hover: #f3e5ab;
    --polaroid-bg: #f9f7f3; /* Màu giấy mỹ thuật trắng sữa ấm của khung Polaroid */
    --polaroid-text: #2d2621; /* Chữ màu gỗ mun sâu lắng trong khung Polaroid */
    --glass-bg: rgba(26, 21, 18, 0.6);
    --glass-border: rgba(235, 220, 208, 0.15);
    
    --font-heading: 'Cormorant Garamond', serif; /* Font chữ thơ mộng, nghệ thuật */
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Hiệu ứng Hạt bụi Film cổ điển */
.film-grain {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E') repeat;
    opacity: 0.85;
    pointer-events: none;
    z-index: 9999;
    animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
    0%, 100% { transform:translate(0, 0); }
    10% { transform:translate(-5%, -10%); }
    20% { transform:translate(-15%, 5%); }
    30% { transform:translate(7%, -25%); }
    40% { transform:translate(-5%, 25%); }
    50% { transform:translate(-15%, 10%); }
    65% { transform:translate(15%, -15%); }
    80% { transform:translate(3%, 35%); }
    90% { transform:translate(-10%, 10%); }
}

/* Base App Wrapper */
#app {
    position: relative;
    z-index: 10;
}

/* Header & Navigation */
.album-header {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.back-home-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
}

.back-home-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.album-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.album-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 30px;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 8px 22px;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.03em;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(235, 220, 208, 0.15);
    transform: translateY(-2px);
}

/* Masonry Gallery Grid */
.gallery-container {
    padding: 30px 40px 80px 40px;
    max-width: 1500px;
    margin: 0 auto;
    columns: 1;
    column-gap: 30px;
}

@media (min-width: 640px) { .gallery-container { columns: 2; } }
@media (min-width: 1024px) { .gallery-container { columns: 3; } }
@media (min-width: 1440px) { .gallery-container { columns: 4; } }

/* Polaroid / Art Card style */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 35px;
    background: var(--polaroid-bg);
    border-radius: 2px; /* Góc nhọn cổ điển của tấm ảnh Polaroid */
    padding: 16px 16px 24px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    position: relative;
    z-index: 1;
}

/* Tạo độ nghiêng tự nhiên ngẫu hứng như xếp ảnh trên bàn */
.gallery-item:nth-child(even) { transform: rotate(1deg); }
.gallery-item:nth-child(odd) { transform: rotate(-0.8deg); }
.gallery-item:nth-child(3n) { transform: rotate(0.6deg); }
.gallery-item:nth-child(4n) { transform: rotate(-1.2deg); }

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(10%) contrast(95%); /* Tông màu hoài cổ nhẹ */
    transition: all 0.6s ease;
}

/* Hover Effect: Làm thẳng ảnh và kéo sát lại gần người xem */
.gallery-item:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 5px 12px rgba(0,0,0,0.3);
    z-index: 10;
}

.gallery-item:hover img {
    filter: sepia(0%) contrast(100%);
}

/* Diary / Caption Style */
.photo-diary {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--polaroid-text);
    text-align: center;
    margin-top: 18px;
    padding: 0 4px;
    line-height: 1.5;
    word-wrap: break-word;
    border-top: 1px dashed rgba(45, 38, 33, 0.1);
    padding-top: 12px;
    position: relative;
}

/* Trang trí hoa văn tinh tế */
.photo-diary::before {
    content: '❦';
    display: block;
    font-size: 0.7rem;
    color: rgba(45, 38, 33, 0.25);
    margin-bottom: 4px;
    text-align: center;
}

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

/* Trình Phát Nhạc Đĩa Than Cổ Điển */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(20, 17, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.music-disc {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, #2d2621 35%, #111 40%, #111 85%, #d4af37 90%, #d4af37 100%);
    border: 1px solid rgba(0, 0, 0, 0.8);
    position: relative;
    transition: transform 0.1s linear;
}

/* Tâm đĩa than */
.music-disc::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
}

/* Trạng thái đĩa than đang quay */
.music-player.playing .music-disc {
    animation: rotateDisc 8s linear infinite;
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Nốt nhạc bay bổng từ đĩa */
.notes-flow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    width: 30px;
    height: 30px;
}

.notes-flow span {
    position: absolute;
    bottom: 0;
    color: var(--accent);
    font-size: 1rem;
    opacity: 0;
}

.music-player.playing .notes-flow span:nth-child(1) {
    animation: floatNote 2.5s ease-in-out infinite;
    left: -10px;
}
.music-player.playing .notes-flow span:nth-child(2) {
    animation: floatNote 2.5s ease-in-out infinite 0.8s;
    left: 10px;
}
.music-player.playing .notes-flow span:nth-child(3) {
    animation: floatNote 2.5s ease-in-out infinite 1.6s;
    left: 0;
}

@keyframes floatNote {
    0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-40px) scale(1.1) rotate(15deg); opacity: 0; }
}

/* Loader */
.loader {
    border: 2px solid rgba(235, 220, 208, 0.05);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* Password Form */
.password-protect {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.glass-container h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 8px;
    color: var(--text-main);
}

.tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Lightbox Nâng Cấp */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 12, 10, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 4px solid rgba(255, 255, 255, 0.03);
    animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 25px; right: 35px;
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Caption lãng mạn trong Lightbox */
.lightbox-caption {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--text-main);
    margin-top: 25px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInCaption 0.6s ease forwards 0.2s;
    opacity: 0;
}

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

/* ==========================================================================
   Romantic cherry blossoms (Cánh hoa anh đào rơi)
   ========================================================================== */
.petals-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.cherry-petal {
    position: absolute;
    background: linear-gradient(135deg, #ffb7c5 40%, #ffa3b1 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(255, 183, 197, 0.3);
    animation: fallPetal linear infinite;
}

@keyframes fallPetal {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(105vh) rotate(540deg) scale(0.9) translateX(100px);
        opacity: 0;
    }
}

/* ==========================================================================
   Member Bar (Thanh Thành Viên)
   ========================================================================== */
.member-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 100;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(26, 21, 18, 0.4);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.member-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.member-welcome {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
}

.btn-text-logout {
    background: transparent;
    border: none;
    color: #f87171;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.btn-text-logout:hover {
    color: #fca5a5;
    text-decoration: underline;
}

.member-auth-triggers {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 21, 18, 0.4);
    border: 1px solid var(--glass-border);
    padding: 6px 18px;
    border-radius: 30px;
}

.btn-text-auth {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-text-auth:hover {
    color: var(--accent);
}

.auth-divider {
    color: rgba(235, 220, 208, 0.15);
    font-size: 0.8rem;
}

/* ==========================================================================
   Romantic Form Inputs (Form Đăng nhập lãng mạn)
   ========================================================================== */
.member-modal-content {
    max-width: 440px !important;
    padding: 3rem 2rem !important;
}

.form-group-romantic {
    margin-bottom: 18px;
}

.form-group-romantic input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
}

.form-group-romantic input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.romantic-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.switch-form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.switch-form-text span {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.switch-form-text span:hover {
    color: var(--accent-hover);
}

.romantic-error-text {
    color: #f87171;
    margin-top: 15px;
    font-size: 0.9rem;
}

.romantic-success-text {
    color: #34d399;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Social Interactions - Polaroid Card (Thả tim & Bình luận trên Polaroid)
   ========================================================================== */
.social-bar-polaroid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: 14px;
    border-top: 1px dashed rgba(45, 38, 33, 0.08);
    padding-top: 10px;
}

.btn-social-polaroid {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #5d4f43;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-social-polaroid:hover {
    background: rgba(45, 38, 33, 0.04);
}

.btn-social-polaroid.active-heart {
    color: #e11d48; /* Trái tim hồng đỏ rực rỡ */
}

.btn-social-polaroid.active-heart .heart-icon-polaroid {
    animation: heartBeat 0.4s ease forwards;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.heart-icon-polaroid {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s;
}

.comment-icon-polaroid {
    font-size: 1.1rem;
    line-height: 1;
}

.count-val {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Khung hiển thị bình luận dưới Polaroid */
.photo-comments-container {
    margin-top: 12px;
    background: rgba(45, 38, 33, 0.03);
    border-radius: 6px;
    padding: 10px;
    text-align: left;
    display: none; /* Mặc định ẩn, nhấp nút comment sẽ toggle */
}

.photo-comments-container.show {
    display: block;
}

.comments-list-polaroid {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 4px;
}

/* Tùy chỉnh thanh cuộn của comment */
.comments-list-polaroid::-webkit-scrollbar,
.comments-list-container::-webkit-scrollbar {
    width: 4px;
}
.comments-list-polaroid::-webkit-scrollbar-track,
.comments-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.comments-list-polaroid::-webkit-scrollbar-thumb,
.comments-list-container::-webkit-scrollbar-thumb {
    background: rgba(45, 38, 33, 0.15);
    border-radius: 2px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-bottom: 1px dashed rgba(45, 38, 33, 0.04);
    padding-bottom: 6px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.comment-content-box {
    flex: 1;
}

.comment-user-name {
    font-weight: 600;
    color: var(--polaroid-text);
    margin-right: 5px;
    font-family: var(--font-body);
}

.comment-text {
    color: #4a3e35;
    font-family: var(--font-body);
}

.comment-time {
    display: block;
    font-size: 0.7rem;
    color: #8c7b6e;
    margin-top: 2px;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.btn-delete-comment:hover {
    opacity: 1;
}

/* Ô nhập bình luận nhanh dưới Polaroid */
.comment-form-polaroid {
    display: flex;
    gap: 6px;
    align-items: center;
    border-top: 1px solid rgba(45, 38, 33, 0.06);
    padding-top: 8px;
}

.comment-form-polaroid input {
    flex: 1;
    border: 1px solid rgba(45, 38, 33, 0.15);
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
}

.comment-form-polaroid input:focus {
    border-color: #5d4f43;
}

.btn-send-comment {
    background: transparent;
    border: none;
    color: #5d4f43;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.btn-send-comment:hover {
    transform: scale(1.15) translateX(2px);
    color: var(--accent);
}

.social-login-prompt {
    font-size: 0.8rem;
    color: #8c7b6e;
    font-style: italic;
    text-align: center;
    padding: 4px 0;
}

.social-login-prompt span {
    color: #4f46e5;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================================================
   Social Interactions - Lightbox (Tương tác trong Lightbox)
   ========================================================================== */
.lightbox-social-section {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    background: rgba(26, 21, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.social-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 6px 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255,255,255,0.1);
}

.social-btn.active-heart {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.social-btn.active-heart .heart-icon {
    animation: heartBeat 0.4s ease forwards;
}

.heart-icon {
    font-size: 1.3rem;
}

.count-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.comments-list-container {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.comments-list-container .comment-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.comments-list-container .comment-user-name {
    color: var(--accent);
}

.comments-list-container .comment-text {
    color: var(--text-main);
}

.comments-list-container .comment-time {
    color: var(--text-muted);
}

.comment-input-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-input-box input {
    flex: 1;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: white;
    outline: none;
    font-family: inherit;
}

.comment-input-box input:focus {
    border-color: var(--accent);
}

.comment-input-box .btn-send-comment {
    color: var(--text-main);
    font-size: 1.3rem;
}

.comment-input-box .btn-send-comment:hover {
    color: var(--accent);
}


/* ==========================================================================
   Modals Gia Đình (Popup Đăng nhập/Đăng ký)
   ========================================================================== */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2200; /* Đè hẳn lên Lightbox */
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(15, 12, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center; 
    align-items: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.member-modal-content {
    background: rgba(26, 21, 18, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    position: relative;
    animation: slideUpModal 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s;
    line-height: 1;
    z-index: 10;
}

.close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}
