/* RESET & GENERAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- 1. KHAI BÁO CON CHUỘT MOUSE.PNG TOÀN TRANG (SỬA LỖI NỀN MỜ) --- */
/* Cần đảm bảo file image/mouse.png đã được resize về 32x32px và tách nền trong suốt */
body, html {
    /* url: đường dẫn ảnh, 0 0: tọa độ tâm điểm click (góc trên trái), auto:fallback */
    cursor: url('../image/mouse.png') 0 0, auto !important;
}

/* Các yếu tố có thể nhấn được thì dùng pointer */
a, button, input, select, textarea, .back-gate-btn, .ctrl-btn, .playlist-btn, .page-num, .cat-btn {
    cursor: url('../image/mouse.png') 0 0, pointer !important;
}
/* ------------------------------------------------------------------ */

body {
    background-image: url('../image/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pixel-title {
    font-family: 'Pixelify Sans', cursive, sans-serif;
    color: #438b74;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
}

/* HEADER SECTION */
.header-section {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    width: 100%;
}

.header-left {
    flex: 0 0 21.77%; 
    aspect-ratio: 280 / 280;
}

.header-right {
    flex: 0 0 78.23%; 
    aspect-ratio: 1006 / 283;
}

.header-left img, 
.header-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* MAIN LAYOUT GRID (2 COLUMNS) */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* NAVIGATION */
.nav-box {
    background-color: #f7ffe9;
    border-radius: 20px;
    padding: 15px 10px;
    border: 2px solid #e1f5d6;
    text-align: center;
}

.decor-bunnies {
    width: 85%;
    margin: 5px auto;
    display: block;
}

.sidebar-nav ul,
.sidebar-nav li {
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-nav ul {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.sidebar-nav ul::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav ul::-webkit-scrollbar-thumb {
    background: #5d9e79;
    border-radius: 10px;
}

.sidebar-nav li {
    margin: 8px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 15px 8px 20px;
    gap: 10px;
    background: #e5f9d3;
    border: 2px solid #99d28e;
    border-radius: 15px;
    color: #275238;
    font-family: 'Pixelify Sans', cursive, sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #cbf2b1;
    transform: translateY(-2px);
}

.nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
}

/* ABOUT BOX */
.about-box {
    background: #f7ffe9;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #e1f5d6;
    text-align: center;
}

.about-img-wrapper img {
    width: 100%;
    max-width: 220px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.about-box h2 {
    font-family: 'Pixelify Sans', cursive, sans-serif;
    color: #2d5a49;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.intro-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #444;
    text-align: justify;
    margin-bottom: 15px;
}

.more-link {
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
    color: #000;
    text-decoration: underline;
}

/* CALENDAR */
.calendar-box img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* RIGHT COLUMN STYLES */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
}

/* BLOG SECTION (2 CỘT CHUẨN MẪU) */
.blog-section {
    background: #e6f9f0;
    border: 2px solid #d0f0e3;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 12px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-img-box {
    width: 100%;
    height: 110px;
    background-color: #c4c4c4;
    overflow: hidden;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.blog-title-bar {
    background-color: #ebfada;
    color: #275238;
    font-family: 'Pixelify Sans', cursive, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #d8f2c3;
    border-top: none;
}

.margin-top {
    margin-top: 20px;
}

/* BIBLE VERSE */
.bible-box {
    background: #ffebeb;
    border: 2px solid #ffd8d8;
    position: relative;
    padding: 20px 40px 20px 20px;
}
.bible-box .pixel-title {
    color: #9A4A4A; 
}

.bible-box blockquote {
    font-style: italic;
    font-size: 0.88rem;
    color: #9A4A4A;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.bible-box cite {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #9A4A4A;
}

.apple-decor {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 65px;
}

/* ==========================================
   CUTE MATCHA MUSIC PLAYER (PASTEL Y2K)
   ========================================== */
.matcha-player-card {
    background: #e6f9f0;
    border: 2px solid #d0f0e3;
    border-radius: 20px;
    padding: 18px 16px;
    color: #275238;
    font-family: 'Be Vietnam Pro', sans-serif;
    width: 100%;
    position: relative;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #438b74;
    margin-bottom: 12px;
    font-family: 'Pixelify Sans', cursive, sans-serif;
}

.playlist-btn {
    background: #ebfada;
    border: 1px solid #d8f2c3;
    color: #275238;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.playlist-btn:hover {
    background: #cbf2b1;
}

/* Khung đĩa CD xoay */
.album-cover-wrapper {
    background: #f0fce8;
    border: 2px solid #e1f5d6;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disc-frame {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    position: relative;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(67, 139, 116, 0.15);
    overflow: hidden;
}

.disc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.disc-center-dot {
    width: 20px;
    height: 20px;
    background: #f7ffe9;
    border: 2px solid #99d28e;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.disc-frame.playing {
    animation: spinDisc 8s linear infinite;
}

@keyframes spinDisc {
    100% { transform: rotate(360deg); }
}

/* Thông tin bài hát */
.song-info {
    text-align: center;
    margin: 12px 0 8px 0;
}

.song-info h4 {
    font-size: 1.05rem;
    color: #275238;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.song-info p {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.78rem;
    font-style: italic;
    color: #5d9e79;
}

/* Thanh sóng âm */
.visualizer-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
    margin-bottom: 10px;
}

.visualizer-bars span {
    width: 5px;
    height: 5px;
    background: #a3e3be;
    border-radius: 3px;
}

.visualizer-bars.playing span {
    animation: bounceCute 0.6s ease-in-out infinite alternate;
}

.visualizer-bars.playing span:nth-child(2n) { animation-delay: 0.15s; }
.visualizer-bars.playing span:nth-child(3n) { animation-delay: 0.3s; }
.visualizer-bars.playing span:nth-child(4n) { animation-delay: 0.45s; }

@keyframes bounceCute {
    0% { height: 4px; }
    100% { height: 18px; background: #5d9e79; }
}

/* Thanh thời gian */
.time-container {
    margin-bottom: 12px;
}

.time-display {
    font-size: 0.8rem;
    color: #438b74;
    text-align: center;
    margin-bottom: 4px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
}

.progress-slider {
    width: 100%;
    height: 5px;
    accent-color: #5d9e79;
    cursor: pointer;
    border-radius: 5px;
}

/* Nút điều khiển */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #275238;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.ctrl-btn:hover {
    transform: scale(1.1);
}

.play-main-btn {
    background: #e5f9d3;
    border: 2px solid #99d28e;
    color: #275238;
    width: 40px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.play-main-btn:hover {
    background: #cbf2b1;
}

/* Playlist xổ xuống */
.playlist-box {
    margin-top: 12px;
    background: #f0fce8;
    border: 1px solid #e1f5d6;
    border-radius: 12px;
    padding: 8px;
    max-height: 140px;
    overflow-y: auto;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.playlist-box.hidden { display: none; }

.playlist-box ul { list-style: none; padding: 0; }
.playlist-box li {
    font-size: 0.78rem;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    color: #333;
    transition: background 0.2s;
    line-height: 1.4;
}

.playlist-box li:hover {
    background: #e5f9d3;
}

.playlist-box li.active-track {
    color: #275238;
    font-weight: 700;
    background: #cbf2b1;
}

/* CURRENTLY LOVING */
.loving-section {
    background: #e6f9f0;
    border: 2px solid #d0f0e3;
}

.loving-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.loving-item {
    background: #d8d8d8;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pixelify Sans', cursive, sans-serif;
    font-size: 1.8rem;
    color: #4a6358;
    font-weight: 700;
}

/* RESPONSIVE CHO DI ĐỘNG */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .header-section {
        flex-direction: column;
    }
    .header-left, .header-right {
        flex: 1 1 100%;
        width: 100%;
    }
}