/* RESET STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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: 30px 10px 50px 10px;
}

.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CỔNG THẦN KỲ QUAY VỀ TRANG CHỦ */
.back-gate-btn-pure {
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 999;
    text-decoration: none;
}

.gate-icon-only {
    width: 60px;
    height: 80px;
    display: block;
    background-image: url('../image/close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.back-gate-btn-pure:hover .gate-icon-only {
    background-image: url('../image/open.png');
    transform: translateY(-4px) scale(1.06);
}

/* 1. TOP BANNER */
.top-banner {
    background-color: #e5f9f0;
    border: 2px solid #d0f0e3;
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-title {
    font-family: 'Pixelify Sans', cursive, sans-serif;
    color: #438b74;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.social-info {
    font-size: 0.85rem;
    font-style: italic;
    color: #275238;
    text-align: right;
    line-height: 1.5;
}

/* 2. PROFILE ROW */
.profile-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: stretch;
}

.avatar-box {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.who-box {
    background: #e5f9d3;
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.who-box h3 {
    font-size: 1.3rem;
    color: #19402a;
    font-weight: 800;
    font-style: italic;
}

.who-box p {
    font-size: 0.95rem;
    font-style: italic;
    color: #19402a;
    line-height: 1.5;
}

/* 3. Q&A BOX FULL WIDTH */
.qa-box {
    background: #e5f9f0;
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-box h3 {
    font-size: 1.25rem;
    color: #19402a;
    font-weight: 800;
    font-style: italic;
}

.qa-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-content p {
    font-size: 0.92rem;
    color: #19402a;
    line-height: 1.5;
}

.qa-content strong {
    font-style: italic;
    font-weight: 700;
}

.qa-link {
    color: #19402a !important;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.qa-link:hover {
    opacity: 0.75;
}

/* 4. TWO COLUMNS LAYOUT: TÚI + SỞ THÍCH */
.interactive-split-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
    align-items: stretch;
}

/* BAG BOX */
.bag-box {
    background: #f7ffe9;
    border-radius: 20px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.bag-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #19402a;
    margin-bottom: 12px;
}

.bag-playground {
    width: 100%;
    height: 380px;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px dashed #b1e2cb;
    overflow: hidden;
}

.drag-item {
    position: absolute;
    cursor: grab;
    transition: transform 0.1s;
    z-index: 5;
}

.drag-item:active {
    cursor: grabbing;
    transform: scale(1.1);
    z-index: 10;
}

.bag-reset-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease;
}

.bag-reset-btn:hover {
    transform: translateX(-50%) scale(1.05);
}

.item-notebook  { top: 25px;  left: 20px;  width: 90px; }
.item-earphones { top: 20px;  left: 120px; width: 65px; }
.item-powder    { top: 25px;  right: 20px; width: 55px; }
.item-lipstick  { top: 130px; left: 10px;  width: 90px !important; }
.item-wallet    { top: 110px; left: 95px;  width: 75px; }
.item-phone     { top: 125px; right: 20px; width: 58px; }

.bag-note {
    font-size: 0.8rem;
    color: #275238;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* FAVORITES CONTAINER */
.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.favorites-box {
    background: #fde1e1;
    border-radius: 20px;
    height: 400px;
    padding: 22px 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.favorite-scroll-area {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.favorite-scroll-area::-webkit-scrollbar { width: 6px; }
.favorite-scroll-area::-webkit-scrollbar-thumb { background: #e28b8b; border-radius: 10px; }

.default-placeholder-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fav-main-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
}

.default-placeholder {
    font-size: 0.95rem;
    color: #8b1e1e !important;
    text-align: center;
    margin: auto 0;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
}

/* 3 NÚT TAB FILTER */
.filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fav-btn {
    background: #fde8e8;
    border: 1.5px solid #f9c2c2;
    border-radius: 12px;
    padding: 10px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 0.95rem;
    color: #8b1e1e !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.fav-btn:hover {
    background: #f5bcbc;
    transform: translateY(-2px);
}

.fav-btn.active {
    background: #f8b8b8 !important;
    color: #8b1e1e !important;
    border-color: #e28b8b !important;
    font-weight: 800 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(248, 184, 184, 0.4);
}

/* NỘI DUNG TABS BÊN TRONG KHUNG HỒNG */
.tab-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.group-title { font-size: 0.95rem; font-weight: 700; color: #000; margin-bottom: 2px; }
.group-sub { font-size: 0.82rem; font-style: italic; color: #333; margin-bottom: 10px; }

/* K-drama Rows Layout */
.media-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 15px;
    margin-bottom: 18px;
    align-items: start;
}

.media-text h4 { font-size: 0.92rem; font-weight: 700; color: #000; margin-bottom: 6px; }
.media-text p { font-size: 0.78rem; font-style: italic; color: #2b2b2b; line-height: 1.5; margin-bottom: 6px; text-align: justify; }
.media-poster img { width: 100%; border-radius: 10px; display: block; object-fit: cover; }

/* Comfort Dramas Cards Grid */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mini-card img {
    width: 100%;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 12px;
}

.mini-card span {
    font-size: 0.78rem;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    color: #000;
}

/* Stan Cards Grid (Dùng chung cho Kpop và Vpop) */
.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stan-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
}

.stan-card strong { font-size: 0.75rem; font-weight: 800; font-style: italic; color: #000; display: block; }
.stan-card span { font-size: 0.7rem; font-style: italic; color: #444; }

/* Band wave to earth Section */
.band-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.band-poster img { 
    width: 100%; 
    height: 250px !important;
    object-fit: cover !important; 
    border-radius: 16px; 
    display: block; 
}
.band-name { display: block; text-align: center; font-size: 0.85rem; font-weight: 800; font-style: italic; margin-top: 4px; }

/* Widget Player & Nút Play iPod */
.widget-player-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-widget-wrapper {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.widget-img { width: 100%; display: block; border-radius: 14px; }

.invisible-play-btn {
    position: absolute;
    top: 75% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 48px !important;
    height: 48px !important;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    z-index: 10;
}

.invisible-play-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.song-review-note {
    font-size: 0.78rem;
    font-style: italic;
    color: #2b2b2b;
    line-height: 1.5;
    text-align: center;
}

/* Spotify Dark Box */
.sp-dark-box {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.sp-khungnhac-img { width: 100%; display: block; border-radius: 14px; }

.sp-grid-6-clickable {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px; padding: 10px;
}

.sp-link-area {
    display: block; width: 100%; height: 100%; border-radius: 8px;
    transition: background 0.2s ease;
}

.sp-link-area:hover { background: rgba(255, 255, 255, 0.1); }

/* ĐỊNH DẠNG RIÊNG CHO TAB VPOP */
.vpop-sub-heading {
    font-size: 0.88rem;
    font-weight: 700;
    font-style: italic;
    color: #19402a;
    text-decoration: underline;
    margin-bottom: 12px;
}

.first-singer-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
}

.first-singer-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.first-singer-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.first-singer-img strong {
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    color: #000;
}

.first-singer-desc p {
    font-size: 0.82rem;
    font-style: italic;
    color: #2b2b2b;
    line-height: 1.55;
    text-align: justify;
}

/* Thẻ bài hát Currently Replaying (click mở YouTube) */
.replaying-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.replaying-card:hover {
    transform: translateY(-3px);
}

.replaying-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
}

.replaying-card strong {
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    color: #000;
    display: block;
}

.replaying-card span {
    font-size: 0.7rem;
    font-style: italic;
    color: #444;
}

.see-more-spotify {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    color: #000;
    text-decoration: underline;
    margin-top: 14px;
    transition: opacity 0.2s;
}

.see-more-spotify:hover {
    opacity: 0.7;
}

/* 5. CHARACTERS SECTION (FOOTER DẢI NGANG) */
.characters-section {
    background: #e5f9f0;
    border-radius: 20px;
    padding: 22px 28px;
}

.characters-section h3 {
    font-size: 1.15rem;
    color: #19402a;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 16px;
}

.characters-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.characters-scroll::-webkit-scrollbar { height: 6px; }
.characters-scroll::-webkit-scrollbar-thumb { background: #a3e3be; border-radius: 10px; }

.char-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 95px;
}

.char-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
}

.char-item span {
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 600;
    color: #19402a;
    text-align: center;
}

@media (max-width: 768px) {
    .profile-row { grid-template-columns: 1fr; }
    .interactive-split-row { grid-template-columns: 1fr; }
    .top-banner { flex-direction: column; text-align: center; gap: 10px; }
    .social-info { text-align: center; }
}