/*
Theme Name: Zen Silence Theme
Theme URI: https://labs.google/flow
Author: Antigravity AI
Author URI: https://deepmind.google/
Description: Theme tối giản dành cho các nhà sáng tạo nội dung thiền định và chữa lành từ Zen Studio Pro 4.9.
Version: 1.6.0
License: GNU General Public License v2 or later
Text Domain: zen-silence
*/

/* ============================================================
   OMNIPINS DESIGN TOKENS — Global Standardization v1.0
   Dark Mode (Zen Silence) = default :root
   Light Mode (Omnipins)   = html[data-theme="light"]
   ============================================================ */

/* 1. Thiết lập biến thiết kế (Design Tokens) — Dark Mode Defaults */
:root {
    /* === Omnipins Brand Aliases (canonical names) === */
    --bg-primary: #0B0B0B;
    /* Deep Midnight */
    --bg-secondary: #1A1A1A;
    /* Dark Gray */
    --text-primary: #E2E8F0;
    /* Slate-200 */
    --text-secondary: #94A3B8;
    /* Slate-400 */
    --zen-text-primary: var(--text-primary);
    --zen-text-secondary: var(--text-secondary);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-color: #D4AF37;
    /* Classic Gold */
    --panel-bg: rgba(20, 20, 20, 0.9);

    /* === Dynamic Search Overlay Variables — Dark === */
    --zen-bg-primary: var(--bg-primary);
    --zen-search-overlay-bg: rgba(6, 6, 8, 0.96);
    --zen-search-close-bg: rgba(255, 255, 255, 0.03);
    --zen-search-close-border: rgba(255, 255, 255, 0.08);
    --zen-search-close-hover: rgba(255, 255, 255, 0.08);
    --zen-search-placeholder: rgba(255, 255, 255, 0.3);

    /* === Legacy aliases (kept for backward-compat) === */
    --bg-color: #060608;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --accent-glow: rgba(212, 175, 55, 0.2);
    --gold-color: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --glass-blur: blur(20px) saturate(150%);
    --header-bg: rgba(6, 6, 8, 0.7);
    --dropdown-bg: rgba(11, 11, 14, 0.95);
    --input-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: linear-gradient(180deg, #0c0c10 0%, #060608 100%);

    /* === Font Stack === */
    --thumbnail-placeholder-bg: #1a1a1a;
    /* Dark: placeholder khi không có thumbnail */
    --post-content-bg: #0f0f12;
    /* Single post content area */
    --modal-bg: #121212;
    /* Modal dialog background */
    --signin-card-bg: #1e1e24;
    /* Login / sign-in cards */
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans KR", "Noto Sans JP", "Microsoft YaHei", sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', "Times New Roman", "Noto Sans KR", "Noto Sans JP", "Microsoft YaHei", serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans KR", "Noto Sans JP", "Microsoft YaHei", sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans KR", "Noto Sans JP", "Microsoft YaHei", sans-serif;
    --zen-font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Sans KR", "Noto Sans JP", "Microsoft YaHei", sans-serif;
    --font-zen-cjk: 'Noto Sans CJK JP', 'Noto Sans CJK KR', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Microsoft YaHei', 'Meiryo', 'Malgun Gothic', sans-serif;
}

/* === OMNIPINS LIGHT MODE (Slate-based SaaS Professional) === */
html[data-theme="light"] {
    /* === Brand Aliases — Light === */
    --bg-primary: #F8FAFC;
    /* Slate-50 */
    --bg-secondary: #FFFFFF;
    /* Surface White */
    --text-primary: #0F172A;
    /* Slate-900 */
    --text-secondary: #475569;
    /* Slate-600 */
    --zen-text-primary: var(--text-primary);
    --zen-text-secondary: var(--text-secondary);
    --border-color: #E2E8F0;
    /* Slate-200 */
    --accent-color: #B8860B;
    /* Dark Goldenrod */
    --panel-bg: rgba(255, 255, 255, 0.92);

    /* === Dynamic Search Overlay Variables — Light === */
    --zen-bg-primary: var(--bg-primary);
    --zen-search-overlay-bg: rgba(248, 250, 252, 0.96);
    --zen-search-close-bg: rgba(15, 23, 42, 0.03);
    --zen-search-close-border: rgba(15, 23, 42, 0.08);
    --zen-search-close-hover: rgba(15, 23, 42, 0.08);
    --zen-search-placeholder: rgba(15, 23, 42, 0.4);

    /* === Legacy aliases — Light === */
    --bg-color: #f8fafc;
    --card-bg: rgba(15, 23, 42, 0.03);
    --card-hover-bg: rgba(15, 23, 42, 0.06);
    --accent-glow: rgba(184, 134, 11, 0.12);
    --gold-color: #B8860B;
    --gold-glow: rgba(184, 134, 11, 0.25);
    --header-bg: rgba(248, 250, 252, 0.92);
    --dropdown-bg: rgba(255, 255, 255, 0.98);
    --input-bg: #ffffff;
    --thumbnail-placeholder-bg: #F1F5F9;
    /* Light: Slate-100 */
    --post-content-bg: #FFFFFF;
    /* Single post area */
    --modal-bg: #FFFFFF;
    /* Modal background */
    --signin-card-bg: #FFFFFF;
    /* Login card */
    --nav-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* --- Light Mode Persistent Audio Player Overrides --- */
html[data-theme="light"] .global-audio-bar {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 25px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .global-audio-title {
    color: var(--text-primary);
}
html[data-theme="light"] .global-audio-desc {
    color: var(--text-secondary);
}
html[data-theme="light"] .global-audio-progress-bar {
    background: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .global-audio-time {
    color: var(--text-secondary);
}
html[data-theme="light"] .global-audio-close-btn {
    color: var(--text-secondary);
}
html[data-theme="light"] .global-audio-close-btn:hover {
    color: var(--text-primary);
}
html[data-theme="light"] .global-audio-play-btn {
    color: #fff;
}


/* --- Special CJK Language Priority Font Stacks --- */
html[lang="ko"] {
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --zen-font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html[lang="ja"] {
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Meiryo", "MS Gothic", sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', "Noto Sans JP", "Hiragino Sans", "Meiryo", "MS Gothic", serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Meiryo", "MS Gothic", sans-serif;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Meiryo", "MS Gothic", sans-serif;
    --zen-font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Meiryo", "MS Gothic", sans-serif;
}

html[lang="zh"] {
    --font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
    --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
    --zen-font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "Microsoft YaHei", sans-serif;
}


/* Smooth theme transition for major elements */
body,
header,
footer,
card,
.site-header,
.site-navigation,
.user-dropdown-panel,
.theme-dropdown-panel,
.lang-dropdown,
input,
textarea,
select,
button,
a,
svg,
span,
div {
    transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* 2. Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

input,
select,
button,
textarea {
    font-family: inherit;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Đảm bảo Unicode tiếng Việt render đúng */
    font-feature-settings: 'kern' 1, 'liga' 1;
    unicode-bidi: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    /* Fix cho tiếng Việt trong heading */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 3. Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 4. Header & Footer Styling */
.site-header {
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span {
    color: var(--accent-color);
    font-weight: bold;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Language Switcher Dropdown Style */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-color);
    color: var(--gold-color);
}

.lang-btn svg {
    transition: transform 0.3s ease;
}

.lang-switcher:hover .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dropdown-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 110;
    overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-color);
    padding-left: 20px;
}


.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.adsense-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* 5. Pinterest Masonry Grid */
.masonry-grid {
    column-count: 4;
    /* Large Desktop screen */
    column-gap: 20px;
    padding: 40px 0;
}

@media (max-width: 1440px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 16px;
        padding: 24px 0;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
        column-gap: 0;
        padding: 20px 0;
    }

    .zen-card {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .zen-card-media {
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .zen-card-title {
        font-size: 0.95rem !important;
        margin-bottom: 6px;
    }

    .zen-card-meta {
        font-size: 0.7rem !important;
    }
}

/* Card item */
.zen-card {
    break-inside: avoid;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zen-card:hover {
    transform: translateY(-6px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--accent-glow);
}

.zen-card-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 16px;
    height: auto;
}

.zen-card-media.media-loaded {
    background: transparent !important;
}

.zen-card-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: none;
    transition: transform 0.6s ease;
}

.zen-card-media video,
.zen-card-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transition: transform 0.6s ease;
}

.zen-card-media iframe {
    pointer-events: none;
    /* Tránh tương tác làm loạn cuộn trang */
}

.zen-card:hover .zen-card-media img {
    transform: scale(1.05);
}

.zen-card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 8px;
}

.zen-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.zen-tag {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 500;
}

/* Hover quote overlay */
.zen-card-quote {
    position: absolute;
    inset: 16px;
    background: rgba(6, 6, 8, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 95;
}

.zen-card:hover .zen-card-quote {
    opacity: 1;
}

.zen-card-quote p {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 6. Theater Mode (Chi tiết bài viết) */
.theater-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .theater-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .theater-player {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .media-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }

    .video-studio-specs {
        width: 100% !important;
        padding: 16px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .specs-circles-container {
        padding: 12px !important;
        gap: 10px !important;
    }

    .spec-circle-item {
        width: 80px !important;
    }
}

.theater-player {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
}

.media-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    aspect-ratio: auto;
}

.media-wrapper:has(iframe),
.media-wrapper:has(video),
.media-wrapper.is-video {
    aspect-ratio: auto;
    height: auto;
    max-height: 85vh;
    margin: 0 auto;
}

.media-wrapper img,
.zen-image-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border: none;
}

.zen-image-container {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.media-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-copy img.emoji,
.btn-copy img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
}

.theater-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.theater-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.theater-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tabs System */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

.tab-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    min-height: 250px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy utilities */
.copy-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.copy-text {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-heading);
    white-space: nowrap;
    transition: background 0.3s, border-color 0.3s;
}

.btn-copy:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
}

/* Suno track listing */
.suno-track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suno-track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.suno-track-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: #111;
    object-fit: cover;
}

.suno-track-info {
    flex-grow: 1;
}

.suno-track-title {
    font-weight: bold;
    font-size: 0.95rem;
}

.suno-track-prompt {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Infinite Scroll / Loading text */
.loading-sentinel {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* 7. ZFN Navigation — Zen Filter Navigation (Phase 6) */
.zfn-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0 44px;
    flex-wrap: wrap;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 60px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.zfn-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.zfn-tab-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.zfn-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.zfn-tab:hover .zfn-tab-icon {
    transform: scale(1.15);
}

.zfn-tab.active {
    color: #0a0a0a;
    background: linear-gradient(135deg, #D4AF37 0%, #F0C040 50%, #C9A227 100%);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.zfn-tab.active .zfn-tab-icon {
    transform: scale(1.1);
}

/* ZFN Guest Login Prompt Overlay */
.zfn-guest-prompt {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.zfn-guest-prompt-inner {
    display: inline-block;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
}

/* Mobile responsive ZFN Nav */
@media (max-width: 768px) {
    .zfn-nav {
        gap: 6px;
        padding: 5px 6px;
        border-radius: 50px;
    }

    .zfn-tab {
        padding: 8px 14px;
        font-size: 0.77rem;
        gap: 5px;
    }

    .zfn-tab-icon {
        font-size: 0.88rem;
    }

    .zfn-guest-prompt-inner {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .zfn-tab-label {
        display: none;
        /* show icon only on very small screens */
    }

    .zfn-tab {
        padding: 10px 14px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .zfn-tab.active .zfn-tab-label {
        display: none;
    }
}

/* ── Asymmetric Grid — applied to detail pages only (NOT homepage) ─────── */
/* single-zen_artifact, single-zen_album, single-post — related grid section */
.related-artifacts-section .related-grid,
.related-artifacts-section .zda-infinite-grid,
.album-cover-infinite-grid {
    column-count: 3;
    column-gap: 24px;
    display: block;
}

.related-artifacts-section .zen-card,
.album-cover-infinite-grid .zen-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 24px;
}

.related-artifacts-section .zen-card-media,
.album-cover-infinite-grid .zen-card-media {
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Mobile: 2 columns, uniform aspect ratio (safety) */
@media (max-width: 768px) {

    .related-artifacts-section .related-grid,
    .related-artifacts-section .zda-infinite-grid,
    .album-cover-infinite-grid {
        column-count: 2;
        column-gap: 16px;
    }

    .related-artifacts-section .zen-card,
    .album-cover-infinite-grid .zen-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {

    .related-artifacts-section .related-grid,
    .related-artifacts-section .zda-infinite-grid,
    .album-cover-infinite-grid {
        column-count: 1;
        column-gap: 0;
    }
}


/* 8. Floating Music Icon for Album Cards */
.floating-music-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 6, 8, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* 9. Copied Glow Feedback Animation */
@keyframes goldGlowFeedback {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: var(--border-color);
    }

    15% {
        box-shadow: 0 0 20px 4px rgba(212, 175, 55, 0.6);
        border-color: var(--gold-color);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: var(--border-color);
    }
}

.copied-glow-active {
    animation: goldGlowFeedback 1.5s ease;
}

/* 10. Custom Compact Audio Player Skin */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
}

.audio-play-btn {
    background: var(--gold-color);
    border: none;
    color: #060608;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: transform 0.2s, background 0.3s;
    flex-shrink: 0;
}

.audio-play-btn:hover {
    transform: scale(1.1);
    background: #f2c94c;
}

.audio-progress-bar {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.audio-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-color);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.audio-time {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: right;
    flex-shrink: 0;
}

/* 11. Modal Master Artifact Analysis Styling */
.zen-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zen-modal-container {
    width: 92vw;
    height: 88vh;
    background: #060608;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    display: flex;
}

.zen-modal-layout {
    width: 100%;
    height: 100%;
    display: flex;
}

@media (max-width: 992px) {
    .zen-modal-container {
        width: 95vw;
        height: 95vh;
    }

    .zen-modal-layout {
        flex-direction: column;
        overflow-y: auto;
    }
}

/* Cột trái */
.zen-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(20, 20, 25, 0.8) 0%, rgba(6, 6, 8, 1) 100%);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.zen-modal-image-wrapper {
    width: auto;
    max-width: 90%;
    max-height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.zen-modal-image-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.zen-modal-caption-title {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--gold-color);
    font-style: italic;
    font-weight: 400;
    text-align: center;
    max-width: 80%;
    line-height: 1.3;
}

/* Cột phải */
.zen-modal-right {
    width: 460px;
    background: #0b0b0e;
    height: 100%;
    overflow-y: auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .zen-modal-left {
        padding: 30px 20px;
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .zen-modal-right {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 30px 20px;
    }
}

.zen-modal-section-header {
    margin-bottom: 5px;
}

.zen-modal-mini-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold-color);
    display: block;
    margin-bottom: 5px;
}

.zen-modal-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

/* Thẻ Modal Panel Card */
.zen-modal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
}

.zen-modal-card-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zen-modal-card-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.concept-text {
    border-left: 2px solid var(--gold-color);
    padding-left: 12px;
    color: #fff !important;
    font-style: italic;
}

.font-italic {
    font-style: italic;
}

.font-mono {
    font-family: monospace;
}

.text-small {
    font-size: 0.8rem !important;
}

/* Hộp Strategic Note nổi bật */
.highlighted-card {
    background: rgba(226, 183, 85, 0.03);
    border: 1px solid rgba(226, 183, 85, 0.15);
}

.highlighted-card .zen-modal-card-text {
    color: #fff;
}

/* Hộp Engine Logic tối màu */
.dark-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.03);
}

.dark-card .zen-modal-card-text {
    color: rgba(255, 255, 255, 0.5);
    max-height: 150px;
    overflow-y: auto;
    word-break: break-word;
    white-space: pre-wrap;
    padding-right: 5px;
}

/* Nút đóng hình tròn bay */
.zen-modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
}

.zen-modal-close-btn:hover {
    background: var(--text-primary);
    color: #060608;
    transform: rotate(90deg);
}

/* Reference Matrix Sliders */
.compliance-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-color);
}

.stat-progress-track {
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    margin-top: 4px;
    overflow: hidden;
}

.stat-progress-fill {
    height: 100%;
    background: var(--gold-color);
    border-radius: 1px;
    box-shadow: 0 0 6px var(--gold-color);
}

/* Nút tải và các action */
.zen-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.zen-modal-btn-primary {
    background: var(--gold-color);
    color: #060608;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.zen-modal-btn-primary:hover {
    background: #f2c94c;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.zen-modal-sub-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.zen-modal-btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.zen-modal-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-color);
}

.btn-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-color);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 800;
}


/* =========================================================
 * VIETNAMESE FONT RENDERING — GLOBAL FIXES
 * Be Vietnam Pro: đầy đủ dấu sắc/huyền/nặng/hỏi/ngã/thanh
 * Playfair Display chỉ dùng cho title card ngắn
 * ========================================================= */

/* Tiêu đề trong body content → Be Vietnam Pro để tránh lỗi dấu Việt */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.theater-info h1,
.theater-info h2,
.theater-info h3,
.post-content h1,
.post-content h2,
.post-content h3,
.zen-modal-main-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Tiêu đề card ngắn — Playfair Display + italic */
.zen-card-title,
.zen-modal-caption-title {
    font-family: 'Playfair Display', var(--font-heading);
    font-style: italic;
    font-weight: 500;
}

/* Mọi nội dung paragraph/span → Be Vietnam Pro */
p,
li,
td,
th,
blockquote,
.zen-modal-card-text,
.concept-text,
.suno-track-title,
.suno-track-prompt,
.zen-card-short-desc,
.zen-card-quote p {
    font-family: var(--font-body);
    line-height: 1.75;
}

/* Quote / Triết lý — Be Vietnam Pro weight 300 italic */
blockquote,
.quote-block,
.post-quote-box,
.zen-card-quote p {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

/* Code / Prompt → JetBrains Mono */
code,
pre,
.copy-text,
.audio-time {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    letter-spacing: 0;
}

/* Button / Tab label → Be Vietnam Pro 600 */
button,
.tab-btn,
.filter-btn,
.zen-modal-btn-primary,
.zen-modal-btn-secondary,
.btn-copy {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navigation */
.site-navigation a,
.site-logo {
    font-family: var(--font-heading);
}

/* Footer */
.site-footer,
.site-footer * {
    font-family: var(--font-body);
}

/* Placeholder */
::placeholder {
    font-family: var(--font-body);
    font-style: italic;
    opacity: 0.45;
}

/* Mobile: tránh iOS auto-zoom khi focus input */
@media (max-width: 576px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =========================================================
 * YOUTUBE-LIKE INTERACTION BAR & COMMENTS STYLING
 * ========================================================= */

.youtube-interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.youtube-interaction-left {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: var(--font-body);
}

.youtube-interaction-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.interaction-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: fit-content;
    white-space: nowrap;
}

.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.interaction-btn.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Optimized Share Dropdown */
.zen-share-container {
    position: relative;
    display: inline-block;
}

.zen-share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #0d0d11;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    width: 220px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
}

.zen-share-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.share-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-color);
}

.share-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.share-item:hover svg {
    transform: scale(1.15);
}

.share-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.share-item.share-copy.copied {
    color: #4ecdc4;
}

/* Pinned Comment Tag */
.pinned-comment-tag {
    font-size: 0.72rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212, 175, 55, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* YouTube-like Comments Section */
.youtube-comments-section {
    margin-top: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.comments-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.mobile-visible {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.comments-count-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.comments-sort-dropdown select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.comments-sort-dropdown select:focus {
    outline: none;
}

.youtube-comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.form-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.form-input-container {
    flex-grow: 1;
}

.form-input-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 0;
    resize: none;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.form-input-container textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-comment-cancel {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-comment-submit {
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.comment-item-yt {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-avatar-yt img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-yt {
    flex-grow: 1;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
}

.comment-time-info {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.comment-text-yt {
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-actions-yt {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-action-btn:hover {
    color: var(--text-primary);
}

.comment-action-btn.active {
    color: var(--accent-color);
}

.comment-pin-action {
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    background: transparent;
    border: none;
}

/* Icon-Only Tabs */
.tab-navigation .tab-btn.icon-only {
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-navigation .tab-btn.icon-only svg {
    display: block;
    pointer-events: none;
}

/* Download block below tabs in right-column */
.download-artifact-block {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Linked articles in sidebar tab */
.linked-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 15px;
}

.linked-article-card {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.linked-article-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
}

.linked-article-thumb {
    width: 90px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.linked-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linked-article-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.linked-article-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.linked-article-excerpt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Hover Download Button overlay for allowed downloads */
.media-wrapper.download-enabled,
.zen-modal-image-wrapper.download-enabled,
.gallery-sub-img.download-enabled,
.gallery-main-img.download-enabled,
.track-cover-wrapper.download-enabled,
.zen-card.download-enabled {
    position: relative;
}

.hover-download-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: auto;
    background: rgba(212, 175, 55, 0.9) !important;
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 105;
}

.hover-download-btn svg {
    display: block;
}

.zen-modal-image-wrapper:not(.download-enabled) .hover-download-btn {
    display: none !important;
}

/* Tối ưu hóa Custom Logo */
.custom-logo-link img.custom-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Custom Social Icon trong Footer */
.footer-social-link.custom-social-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.media-wrapper.download-enabled:hover .hover-download-btn,
.zen-modal-image-wrapper.download-enabled:hover .hover-download-btn,
.gallery-sub-img.download-enabled:hover .hover-download-btn,
.gallery-main-img.download-enabled:hover .hover-download-btn,
.track-cover-wrapper.download-enabled:hover .hover-download-btn,
.zen-card.download-enabled:hover .hover-download-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hover-download-btn:hover {
    background: rgba(212, 175, 55, 1) !important;
    color: #000 !important;
    transform: scale(1.05) translateY(0);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Rule for iframe media wrappers (Google Drive players) to show download button reliably */
.media-wrapper.download-enabled:has(iframe) .hover-download-btn {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.media-wrapper.download-enabled:has(iframe) .hover-download-btn:hover {
    opacity: 1;
    transform: scale(1.05) translateY(0);
}

/* Safeguard for long translations to prevent button overflow */
.hover-download-btn.long-text {
    font-size: 0.68rem !important;
    padding: 6px 10px !important;
}

.hover-download-btn {
    white-space: nowrap;
    min-width: fit-content;
}



.custom-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}



/* Logo Styles */
.custom-logo-link img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-logo-link img:hover {
    transform: scale(1.05);
}

/* --- AI Core Specs Circle Progress Charts --- */
.specs-circles-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 15px;
    flex-wrap: wrap;
}

.spec-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
    position: relative;
}

.spec-circle-svg-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.spec-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 3.5;
}

/* AI Core Container - Completely Hidden */
.video-studio-specs,
.ai-core-container {
    display: none !important;
}

/* Đảm bảo text bên trong hiển thị đúng */
.ai-core-container .label,
.video-studio-specs .spec-circle-label {
    color: var(--text-secondary) !important;
}

.ai-core-container .value,
.video-studio-specs .spec-circle-text {
    color: var(--text-primary) !important;
}

/* Đồ thị vòng tròn */
.circle-bg,
.circular-chart-bg {
    stroke: var(--border-color) !important;
    /* Nền vòng tròn sáng hơn trong Light Mode */
}

.circle-progress {
    fill: none;
    stroke: var(--gold-color, #D4AF37);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 100;
    /* Animated dynamically by JS */
    transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-family: monospace;
}

.spec-circle-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.3;
}

/* Pulsing Gold Glow Feedback for copier */
@keyframes goldPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
        border-color: rgba(212, 175, 55, 0.8);
    }

    50% {
        box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.35);
        border-color: rgba(212, 175, 55, 1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

.copied-glow-active {
    animation: goldPulseGlow 1.2s ease-in-out !important;
}



/* --- Global Persistent Audio Bar --- */
.global-audio-bar {
    position: fixed;
    bottom: -100px;
    /* Hidden initially, slides up on activation */
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 14, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-audio-bar.active {
    bottom: 0;
}

.global-audio-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.global-audio-cover-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--gold-color, #D4AF37);
    background: #000;
    flex-shrink: 0;
}

.global-audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-audio-cover-wrapper.spinning .global-audio-cover {
    animation: spinRotate 12s linear infinite;
}

@keyframes spinRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.global-audio-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-audio-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 2px;
}

.global-audio-desc {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
}

.global-audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 45%;
    justify-content: center;
}

.global-audio-play-btn {
    background: var(--gold-color, #D4AF37);
    border: none;
    color: #060608;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.global-audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.global-audio-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.global-audio-progress-bar {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.global-audio-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gold-color, #D4AF37);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.global-audio-time {
    font-size: 0.75rem;
    color: var(--text-secondary, #888);
    font-family: monospace;
    min-width: 35px;
}

.global-audio-extra {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
    justify-content: flex-end;
}

.global-audio-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.global-audio-close-btn:hover {
    color: var(--text-primary, #fff);
}

/* Sleep Timer & Mood Selector Styles */
.global-audio-timer-wrap {
    position: relative;
    display: inline-block;
}
.global-audio-timer-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.global-audio-timer-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-color, #D4AF37);
    color: var(--gold-color, #D4AF37);
}
.global-audio-timer-popup {
    position: absolute;
    bottom: 45px;
    right: 0;
    background: #101014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    min-width: 90px;
    z-index: 99999;
}
.timer-option {
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #b4b6c3;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
}
.timer-option:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-color, #D4AF37);
}
.global-audio-mood-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 28px 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 11px;
}
.global-audio-mood-select:hover {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-color, #D4AF37);
    color: var(--gold-color, #D4AF37);
}
.global-audio-mood-select option {
    background: #101014;
    color: #fff;
}

/* --- Queue Drawer & Nav Elements --- */
.global-audio-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
}
.global-audio-nav-btn {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-secondary, #888) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
}
.global-audio-nav-btn:hover {
    color: var(--gold-color, #D4AF37);
    transform: scale(1.15);
}

.global-audio-queue-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    padding: 0;
}
.global-audio-queue-btn:hover,
.global-audio-queue-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-color, #D4AF37);
    color: var(--gold-color, #D4AF37);
}

.global-queue-drawer {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 380px;
    max-height: 450px;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 99998; /* High z-index to stay above other page layers but under close button if needed */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}
@keyframes drawerSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* State class cho queue drawer — dùng kết hợp với inline style */
.global-queue-drawer.queue-open {
    display: flex !important;
}
.queue-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.queue-drawer-title {
    font-family: var(--font-heading), sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}
.queue-drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.queue-drawer-close-btn:hover {
    color: #fff;
}
.queue-drawer-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 380px;
}
.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-bottom: 4px;
}
.queue-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.queue-item:active {
    transform: scale(0.98);
}
.queue-item.active {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.25);
}
.queue-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.queue-item-meta {
    flex-grow: 1;
    overflow: hidden;
}
.queue-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.queue-item.active .queue-item-title {
    color: var(--gold-color, #D4AF37);
}
.queue-item-artist {
    font-size: 0.72rem;
    color: var(--text-secondary, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.queue-item-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.eq-wave {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    width: 14px;
    height: 12px;
}
.eq-bar {
    width: 3px;
    height: 2px;
    background-color: var(--gold-color, #D4AF37);
    animation: eqPulse 1s ease-in-out infinite alternate;
    border-radius: 1px;
}
.eq-bar:nth-child(1) { animation-duration: 0.8s; }
.eq-bar:nth-child(2) { animation-duration: 1.2s; animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.4s; }

@keyframes eqPulse {
    0% { height: 2px; }
    100% { height: 12px; }
}

@media (max-width: 480px) {
    .global-queue-drawer {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 95px;
        max-height: 350px;
    }
}


/* PJAX Loading Bar at the top of page */
.pjax-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, #c49d2a, var(--gold-color, #D4AF37), #fff);
    z-index: 10000;
    transition: width 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.pjax-loading-bar.active {
    opacity: 1;
}

/* Global play states sync styles */
.suno-track-item.playing {
    border-color: var(--gold-color, #D4AF37) !important;
    background: rgba(212, 175, 55, 0.03) !important;
}

/* Related section header enhancements */
.related-section-title {
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

/* --- SEARCH OVERLAY SYSTEM --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--zen-search-overlay-bg);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-40px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
}

.search-overlay.search-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    background: var(--zen-search-close-bg);
    border: 1px solid var(--zen-search-close-border);
    color: var(--zen-text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close-btn:hover {
    background: var(--zen-search-close-hover);
    color: var(--zen-text-primary);
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 90%;
    max-width: 680px;
    text-align: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    transition: border-color 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--gold-color);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 15px;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--gold-color);
}

.search-field {
    background: transparent;
    border: none;
    color: var(--zen-text-primary);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    width: 100%;
    outline: none;
}

.search-field::placeholder {
    color: var(--zen-search-placeholder);
}

.search-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.mobile-search-btn {
    display: none !important;
}

.menu-item-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 1.1rem;
    vertical-align: middle;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    /* Ngay bên dưới drawer site-navigation (1001) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Đưa header lên trên lớp phủ overlay khi mở menu di động */
body.mobile-menu-open .site-header {
    z-index: 1002 !important;
}

/* --- MOBILE NAVIGATION DRAWER --- */
@media (max-width: 1024px) {
    .mobile-search-btn {
        display: flex !important;
    }

    .desktop-search-btn {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .site-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        background: var(--nav-bg) !important;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.3), inset 1px 0 0 0 rgba(212, 175, 55, 0.1);
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start;
        padding: 40px 30px 40px;
        gap: 20px !important;
        z-index: 99999 !important;
        /* Đè lên toàn bộ header */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
    }

    .mobile-drawer-header {
        display: flex !important;
    }

    .menu-item-icon {
        display: inline-block !important;
    }

    .site-navigation.mobile-nav-active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.8);
    }

    .header-nav-menu {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
        width: 100%;
    }

    .header-nav-menu li {
        width: 100%;
    }

    .header-nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .lang-switcher {
        margin-top: 10px;
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        margin-top: 10px;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .lang-switcher:hover .lang-dropdown {
        max-height: 300px;
    }
}

/* --- MOBILE & TABLET RESPONSIVE --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .site-header .container {
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .site-title {
        font-size: 1.15rem !important;
    }

    .site-description {
        display: none !important;
    }

    .archive-header h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 40px 0 10px !important;
    }

    .archive-header h1 {
        font-size: 1.8rem !important;
    }

    .archive-header p {
        font-size: 0.95rem !important;
    }

    .filter-bar {
        gap: 8px;
        margin-bottom: 25px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .site-footer {
        margin-top: 50px;
        padding: 40px 0 20px;
    }

    .site-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Theater layout sidebar stacking spacing */
    .theater-info {
        top: 0;
    }

    .theater-header h1 {
        font-size: 1.7rem !important;
    }
}

@media (max-width: 576px) {
    .search-close-btn {
        top: 20px;
        right: 20px;
    }

    .search-field {
        font-size: 1.3rem;
    }

    .zen-card {
        padding: 12px;
        border-radius: 14px;
    }

    .zen-card-title {
        font-size: 1.2rem;
    }

    .suno-track-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .suno-track-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .suno-track-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    /* Global player on mobile */
    .global-audio-player-bar .container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .global-audio-info {
        width: 100% !important;
    }

    .global-audio-progress-container {
        width: 100% !important;
    }

    .global-audio-extra {
        width: 100% !important;
        justify-content: space-between;
    }
}

/* --- LOGIN & REGISTER FRONTEND CARD --- */
.zen-auth-card {
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zen-auth-card:hover {
    border-color: rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.05);
}

/* --- Social buttons, Close, Back and Password toggle buttons standard styles --- */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 12px 24px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    z-index: 10;
    text-decoration: none;
}

.auth-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.auth-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-right: 8px;
    transition: color 0.2s;
}

.auth-back-btn:hover {
    color: var(--text-primary) !important;
}

.password-toggle-btn {
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    opacity: 1;
}

.auth-tabs {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* var(--zen-radius-md) */
    padding: 4px;
    margin-bottom: 25px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-tab-btn.active {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn.inactive {
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.auth-tab-btn:hover:not(.active) {
    color: var(--text-primary) !important;
}

/* --- Divider line styling --- */
.divider-wrapper {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider-wrapper div {
    flex: 1;
    height: 1px;
    background: var(--border-color);
    opacity: 0.35;
}

.divider-wrapper span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 16px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* --- Loading Spinner and Disabled Button states --- */
.auth-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- PRICING PLAN PAGE --- */
.pricing-grid .pricing-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pricing-card.plan-active:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 25px 45px rgba(212, 175, 55, 0.25) !important;
    border-color: #fff !important;
}

.plan-blurred:hover {
    opacity: 0.55 !important;
}

.pricing-card .plan-btn {
    transition: all 0.3s ease;
}

.pricing-card .plan-btn:hover {
    filter: brightness(1.1);
}

/* --- USER DROPDOWN MENU --- */
.user-dropdown-panel.dropdown-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-panel .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: left;
}

.user-dropdown-panel .dropdown-item:hover {
    background: var(--card-hover-bg);
    color: var(--accent-color);
}

.dropdown-submenu-trigger:hover .dropdown-submenu-panel {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* --- USER PROFILE & SOCIALS --- */
.profile-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .profile-hero-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }

    .profile-info-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-avatar-wrapper {
        margin: 0 auto;
    }

    .user-display-name-header {
        display: none !important;
        /* Hide name text in header bar on mobile to fit icons */
    }

    /* Responsive account grid */
    #form-account-settings div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    #form-account-settings {
        padding: 25px 20px !important;
    }
}

/* --- HEADER CONTROLS UNIFIED GOLD COLOR --- */
.search-toggle-btn,
.lang-btn,
.user-menu-btn,
.user-login-icon-btn,
.mobile-menu-toggle {
    color: var(--gold-color) !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.search-toggle-btn:hover,
.lang-btn:hover,
.user-menu-btn:hover,
.user-login-icon-btn:hover,
.mobile-menu-toggle:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

/* --- USER PROFILE MASONRY GRID (MỤC 6) --- */
.zen-masonry-grid {
    margin: 0 auto;
}

.zen-grid-sizer,
.zen-masonry-grid>.zen-card,
.zen-masonry-grid .board-pin-card-wrapper {
    width: calc(25% - 15px);
}

.board-pin-card-wrapper .zen-card {
    width: 100% !important;
}

@media (max-width: 992px) {

    .zen-grid-sizer,
    .zen-masonry-grid>.zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 14px) !important;
    }
}

@media (max-width: 768px) {

    .zen-grid-sizer,
    .zen-masonry-grid>.zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 7px) !important;
        /* Lưới 3 cột di động với gutter 10px */
    }

    .zen-masonry-grid .zen-card {
        padding: 8px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

    .zen-masonry-grid .zen-card-short-desc,
    .zen-masonry-grid .zen-card-quote {
        display: none !important;
    }

    .zen-masonry-grid .zen-card-title {
        display: block !important;
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        margin: 6px 0 4px 0 !important;
    }

    .zen-masonry-grid .zen-card-meta {
        display: flex !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
    }

    .zen-masonry-grid .zen-card-media {
        border-radius: 6px !important;
    }
}

/* --- DOUBLE-TAP PIN ANIMATION --- */
.floating-pin-effect {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 99999;
    animation: floatUpPin 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatUpPin {
    0% {
        transform: scale(0.3) rotate(-15deg);
        opacity: 0;
    }

    30% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(-60px) rotate(0deg);
        opacity: 0;
    }
}

/* --- SKELETON SHIMMER EFFECT --- */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmerEffect 1.5s infinite;
}

@keyframes shimmerEffect {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Profile Hero Card (Pinterest Center Design) */
@media (max-width: 768px) {
    .profile-hero-card {
        margin-bottom: 25px !important;
    }

    .profile-banner-bg {
        height: 130px !important;
    }

    .change-banner-btn {
        top: 10px !important;
        right: 10px !important;
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }

    .profile-details-wrap {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 15px 25px !important;
        gap: 15px !important;
    }

    .profile-avatar-wrapper {
        width: 90px !important;
        height: 90px !important;
        margin-top: -65px !important;
        margin-left: 0 !important;
        border-width: 3px !important;
    }

    .profile-main-info {
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
    }

    .profile-main-info>div:not(.profile-header-inline-row) {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .profile-header-inline-row {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .profile-header-left-group,
    .profile-header-right-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: auto !important;
    }

    /* Action buttons center as small circular buttons on mobile */
    .profile-action-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        width: auto !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .profile-circle-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Pinterest-style stats bar */
    .profile-stats-row {
        display: inline-flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: auto !important;
        margin: 0 !important;
        border: none !important;
        padding: 0 !important;
    }

    .profile-stat-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .profile-stat-item svg {
        width: 14px !important;
        height: 14px !important;
        margin-bottom: 0 !important;
    }

    .profile-stat-text {
        font-size: 0.8rem !important;
        color: var(--text-secondary) !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .profile-stat-text strong {
        font-size: 0.95rem !important;
        color: #fff !important;
        display: inline-block !important;
        margin-bottom: 0 !important;
    }

    .profile-stat-label {
        font-weight: normal !important;
    }

    @media (max-width: 768px) {
        .profile-stats-row {
            gap: 15px !important;
        }

        .profile-stat-label {
            display: none !important;
            /* Hide long labels on mobile */
        }

        .profile-stat-item {
            flex: unset !important;
        }

        .profile-stat-text {
            font-size: 0.85rem !important;
        }
    }
}

/* Responsive Profile Tabs */
@media (max-width: 768px) {
    .profile-tabs {
        gap: 15px !important;
        justify-content: space-around !important;
        margin-bottom: 25px !important;
        padding-bottom: 8px !important;
    }

    .profile-tab-btn {
        font-size: 0.85rem !important;
        padding: 6px 4px !important;
        gap: 4px !important;
        flex: 1;
        justify-content: center;
    }

    .profile-tab-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .profile-tab-btn .active-indicator {
        bottom: -9px !important;
    }
}

@media (max-width: 480px) {
    .profile-tabs {
        gap: 6px !important;
    }

    .profile-tab-btn {
        font-size: 0.78rem !important;
        padding: 6px 2px !important;
    }

    .profile-tab-btn svg {
        display: none !important;
        /* Hide icon on very small screen to make room for text */
    }
}

/* Responsive 2-column Grid for Mobile & 3-column for Tablet */
@media (max-width: 1024px) {

    .zen-grid-sizer,
    .zen-masonry-grid>.zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(33.333% - 7px) !important;
        /* 3 columns on Tablet */
    }
}

@media (max-width: 768px) {

    .zen-grid-sizer,
    .zen-masonry-grid>.zen-card,
    .zen-masonry-grid .board-pin-card-wrapper {
        width: calc(50% - 5px) !important;
        /* 2 columns on Mobile */
    }
}

/* Fallback styles for cards without images in profile */
.zen-masonry-grid .zen-card[data-post-type] {
    min-height: 120px;
}

@media (max-width: 768px) {

    /* If a card does not have media or media is collapsed, styling fallback */
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) {
        background: rgba(15, 15, 20, 0.6) !important;
        border: 1px solid rgba(212, 175, 55, 0.25) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 15px 12px !important;
    }

    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-media {
        display: block !important;
        width: 100% !important;
        background: none !important;
        aspect-ratio: auto !important;
        margin-bottom: 5px !important;
    }

    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-media div {
        background: none !important;
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
    }

    /* Force display of post titles for text-only/image-less cards on mobile */
    .zen-masonry-grid .zen-card:not(:has(.zen-card-media img)) .zen-card-title {
        display: block !important;
        font-size: 0.85rem !important;
        color: #fff !important;
        margin: 4px 0 0 0 !important;
        font-weight: 600 !important;
        font-family: var(--font-sans) !important;
        line-height: 1.3 !important;
    }
}

/* Mobile Bottom Navigation Bar (Pinterest Style) */
.zen-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    height: 58px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: none;
    /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .zen-bottom-nav {
        display: flex;
        /* Visible on mobile/tablet */
    }

    /* Add extra padding at the bottom of the body to prevent content from being cut off by the navigation bar */
    body {
        padding-bottom: 85px !important;
    }
}

.zen-bottom-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.25s ease;
    position: relative;
}

.zen-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.zen-bottom-nav-item:hover,
.zen-bottom-nav-item.active {
    color: var(--gold-color);
}

.zen-bottom-nav-item.active svg {
    transform: scale(1.08);
}

.zen-bottom-nav-item .nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: border-color 0.25s ease;
}

.zen-bottom-nav-item.active .nav-avatar {
    border-color: var(--gold-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Plus button highlight */
.zen-bottom-nav-item.nav-plus {
    background: linear-gradient(135deg, #D4AF37 0%, #AA8010 100%);
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.zen-bottom-nav-item.nav-plus:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.45);
}

/* Custom Toast notification style */
.zen-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, 50px);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--gold-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zen-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

/* Responsive Related Grid (More Like This) */
.related-grid {
    column-count: 3 !important;
    column-gap: 24px !important;
    display: block !important;
}

@media (max-width: 768px) {
    .related-grid {
        column-count: 2 !important;
        column-gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .related-grid {
        column-count: 1 !important;
        column-gap: 0 !important;
    }

    .related-grid .zen-card {
        padding: 6px !important;
        border-radius: 8px !important;
    }
}

/* Footer Grid Responsive Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }

    .footer-grid>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-grid .site-logo-container {
        justify-content: center !important;
        margin-bottom: 12px !important;
    }

    .footer-grid p {
        text-align: center !important;
        font-size: 0.88rem !important;
    }

    .footer-grid .footer-nav-menu {
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .footer-grid .footer-nav-menu li {
        text-align: center !important;
    }

    .footer-grid h4 {
        margin-bottom: 15px !important;
    }

    /* Cover Banner Socials Alignment on Mobile */
    .profile-banner-socials {
        position: absolute !important;
        right: 15px !important;
        left: auto !important;
        bottom: 12px !important;
        transform: none !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
    }
}

/* Mobile Bottom Navigation Bar (Pinterest style) */
.zen-bottom-nav {
    display: none !important;
    /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    .zen-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        height: 60px !important;
        background: rgba(15, 15, 20, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        box-sizing: border-box !important;
    }

    .zen-bottom-nav-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.25s ease !important;
        border-radius: 50% !important;
        text-decoration: none !important;
    }

    .zen-bottom-nav-item svg {
        width: 22px !important;
        height: 22px !important;
        transition: transform 0.25s ease !important;
    }

    .zen-bottom-nav-item:hover,
    .zen-bottom-nav-item.active {
        color: var(--gold-color) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .zen-bottom-nav-item.active svg {
        transform: scale(1.1) !important;
    }

    .zen-bottom-nav-item.nav-plus {
        background: var(--gold-color) !important;
        color: #000 !important;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
    }

    .zen-bottom-nav-item.nav-plus:hover {
        background: #fff !important;
        color: #000 !important;
        transform: scale(1.05) !important;
    }

    .zen-bottom-nav-item .nav-avatar {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
        transition: border-color 0.25s ease !important;
    }

    .zen-bottom-nav-item.active .nav-avatar {
        border-color: var(--gold-color) !important;
    }

    /* Offset footer on mobile to prevent bottom nav overlay */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    }
    body:not(.logged-in) {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .global-audio-bar.active {
        bottom: calc(60px + env(safe-area-inset-bottom)) !important;
        height: 70px !important;
        padding: 0 15px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 99999 !important;
        background: rgba(10, 10, 14, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    body:not(.logged-in) .global-audio-bar.active {
        bottom: env(safe-area-inset-bottom) !important;
    }

    .global-audio-info {
        width: 60% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .global-audio-info .global-audio-desc {
        display: none !important;
    }

    .global-audio-controls {
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: row !important;
        gap: 0 !important;
    }

    .global-audio-controls .global-audio-nav-btn {
        display: none !important;
    }

    .global-audio-progress-container {
        display: none !important;
    }

    .global-audio-extra {
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
    }

    .global-audio-extra .global-audio-timer-wrap,
    .global-audio-extra .global-audio-mood-select {
        display: none !important;
    }

    .global-audio-mood-select {
        padding: 4px 20px 4px 6px !important;
        font-size: 0.7rem !important;
        border-radius: 12px !important;
        background-position: right 6px center !important;
        background-size: 9px !important;
        max-width: 95px !important;
    }

    .global-audio-timer-btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 12px !important;
    }

    .global-audio-close-btn {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        color: var(--text-secondary, #888) !important;
        z-index: 99999 !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
    }

    /* Responsive Queue Drawer on mobile devices */
    .global-queue-drawer {
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        bottom: calc(140px + env(safe-area-inset-bottom)) !important;
        max-height: 350px !important;
        z-index: 99998 !important;
    }
    body:not(.logged-in) .global-queue-drawer {
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* ============================================================
   TOUCH-FRIENDLY: Disable hover effects on touch devices
   Dùng @media (hover: hover) để chỉ áp dụng hover cho mouse users
   ============================================================ */
@media (hover: hover) and (pointer: fine) {

    /* Hover effects chỉ chạy khi có chuột thực sự */
    .zen-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    .zen-card:hover .zen-card-quote {
        opacity: 1;
        transform: translateY(0);
    }

    .filter-btn:hover {
        color: #060608;
        background: var(--gold-color);
        border-color: var(--gold-color);
    }
}

/* Touch target enforcement — tất cả interactive elements ≥ 44×44px */
@media (max-width: 1024px) {

    .zen-card-pin-btn,
    .audio-play-btn,
    .filter-btn,
    .zen-bottom-nav-item,
    .like-btn,
    .share-btn {
        min-width: 44px;
        min-height: 44px;
    }
}


/* =================================================================
   SYSTEM-WIDE UI AUDIT & REPAIR — Light/Dark Theme Compatibility
   Strategy: CSS class overrides beat inline styles via !important
   Covers: Header, Dropdowns, Static Pages, Pricing, Account,
           Profile, Studio, Footer, Modals
   ================================================================= */

/* ─── BODY & BASE ─────────────────────────────────────────────── */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* ─── SITE HEADER ─────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* ─── HEADER DROPDOWN PANELS ──────────────────────────────────── */
.user-dropdown-panel,
.theme-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 220px;
    background: var(--bg-secondary);
    /* Sử dụng nền chuẩn của Design Tokens */
    border: 1px solid var(--border-color);
    /* Border tinh tế, đồng bộ */
    color: var(--text-primary);
    /* Màu chữ đồng bộ với hệ thống */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Đổ bóng nhẹ nhàng cho Light Mode */
    border-radius: 8px;
    /* Bo góc để hợp với phong cách SaaS hiện đại */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-dropdown-panel.dropdown-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-panel .dropdown-item {
    color: var(--text-secondary);
}

.user-dropdown-panel .dropdown-item:hover {
    background: var(--card-hover-bg);
    color: var(--accent-color);
}

.theme-dropdown-panel span,
.theme-dropdown-panel p {
    color: var(--text-secondary);
}

.theme-option-item span {
    color: var(--text-primary);
}

/* --- USER DROPDOWN PANELS INNER ELEMENTS --- */
.user-dropdown-panel .dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.user-dropdown-panel .dropdown-header-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-dropdown-panel .badge-free {
    background: var(--card-hover-bg);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 30px;
}

.user-dropdown-panel .upgrade-btn-wrapper {
    padding: 10px 20px 5px;
}

.user-dropdown-panel .upgrade-btn {
    display: block;
    background: var(--gold-color);
    color: #000 !important;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.user-dropdown-panel .upgrade-btn:hover {
    filter: brightness(1.1);
}

.user-dropdown-panel .logout-wrapper {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
}

.user-dropdown-panel .logout-link {
    color: #f44336 !important;
}

.user-dropdown-panel .logout-link:hover {
    background: rgba(244, 67, 54, 0.1) !important;
}

/* ─── STATIC CONTENT PAGES (About, Contact, Privacy, FAQ…) ───── */
.zen-static-page-container {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.zen-static-page-container h1,
.zen-static-page-container h2,
.zen-static-page-container h3 {
    color: var(--accent-color) !important;
    border-color: var(--border-color) !important;
}

.zen-static-page-container .static-content,
.zen-static-page-container .static-content p,
.zen-static-page-container .static-content li,
.zen-static-page-container .static-content span {
    color: var(--text-secondary) !important;
}

.zen-static-page-container .static-content a {
    color: var(--accent-color) !important;
}

/* ─── PRICING PAGE ────────────────────────────────────────────── */
.pricing-page-wrapper {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.pricing-page-wrapper h1 {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.pricing-page-wrapper .pricing-toggle-wrapper {
    color: var(--text-secondary) !important;
}

.pricing-cards-grid .pricing-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.pricing-card h3,
.pricing-card .plan-name,
.pricing-card .plan-price {
    color: var(--text-primary) !important;
}

.pricing-card ul li {
    color: var(--text-secondary) !important;
}

.pricing-card .pricing-btn:not(.upgrade-btn):not(.gold-cta-btn) {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
}

.pricing-card .pricing-btn.current-plan-btn {
    border: 1px solid var(--accent-color) !important;
    background: var(--accent-glow) !important;
    color: var(--accent-color) !important;
}

/* ─── ACCOUNT SETTINGS PAGE ──────────────────────────────────── */
#form-account-settings {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

#form-account-settings>div>h3 {
    color: var(--accent-color) !important;
}

#form-account-settings label {
    color: var(--text-secondary) !important;
}

#form-account-settings input[type="text"],
#form-account-settings input[type="email"],
#form-account-settings input[type="password"],
#form-account-settings input[type="date"],
#form-account-settings input[type="url"],
#form-account-settings textarea,
#form-account-settings select {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.container h1 {
    color: var(--text-primary) !important;
}

.container>header p {
    color: var(--text-secondary) !important;
}

/* ─── PROFILE PAGE ────────────────────────────────────────────── */
.profile-hero-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.profile-avatar-wrapper {
    border-color: var(--bg-secondary) !important;
    background: var(--bg-primary) !important;
}

.profile-details-wrap h2,
.profile-details-wrap h3,
.profile-details-wrap .user-display-name {
    color: var(--text-primary) !important;
}

.profile-details-wrap p {
    color: var(--text-secondary) !important;
}

.profile-tab-btn {
    color: var(--text-secondary) !important;
    border-bottom-color: transparent !important;
}

.profile-tab-btn.active {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
}

.zen-board-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ─── STUDIO PAGE ─────────────────────────────────────────────── */
.zen-studio-wrap {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.zs-sidebar {
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color) !important;
}

.zs-sidebar-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.zs-display-name {
    color: var(--text-primary) !important;
}

.zs-badge.free {
    background: var(--card-bg) !important;
    color: var(--text-secondary) !important;
}

.zs-nav li a {
    color: var(--text-secondary) !important;
}

.zs-nav li a:hover,
.zs-nav li.active a {
    color: var(--accent-color) !important;
    background: var(--card-hover-bg) !important;
}

.zs-content {
    background: var(--bg-primary) !important;
}

.zs-content-header h2,
.zs-content-header h3 {
    color: var(--text-primary) !important;
}

.zs-card,
.zs-upload-box,
.zs-form-section {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zs-label {
    color: var(--text-secondary) !important;
}

.zs-input,
.zs-textarea,
.zs-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zs-tab-item {
    color: var(--text-secondary) !important;
    border-bottom-color: transparent !important;
}

.zs-tab-item.active {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
}

.zs-works-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

.zs-works-item h4,
.zs-works-item p {
    color: var(--text-primary) !important;
}

.zs-notif-item {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.zs-notif-item p {
    color: var(--text-primary) !important;
}

.zs-notif-item time {
    color: var(--text-secondary) !important;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.site-footer h4 {
    color: var(--accent-color) !important;
}

.site-footer a {
    color: var(--text-secondary) !important;
}

.site-footer a:hover {
    color: var(--accent-color) !important;
}

.site-footer p {
    color: var(--text-secondary) !important;
}

/* ─── MODAL OVERLAYS ──────────────────────────────────────────── */
.zen-modal-container {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zen-modal-container h2,
.zen-modal-container h3 {
    color: var(--text-primary) !important;
}

.zen-modal-container p,
.zen-modal-container label {
    color: var(--text-secondary) !important;
}

/* ─── LIGHT MODE — ADDITIONAL DEPTH HELPERS ───────────────────── */
html[data-theme="light"] .profile-hero-card {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .profile-banner-socials a {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="light"] .zs-sidebar {
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] #form-account-settings {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .pricing-card {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .pricing-card-pro,
html[data-theme="light"] .pricing-card-premium {
    border-color: var(--accent-color) !important;
}

html[data-theme="light"] .zen-static-page-container {
    box-shadow: none !important;
}

/* ─── END SYSTEM-WIDE AUDIT BLOCK ────────────────────────────── */

/* =================================================================
   ACCOUNT SETTINGS — Containers & Visual Card Selectors
   ================================================================= */
/* Áp dụng cho các khối container của trang Account */
.account-section-wrapper {
    border: 1px solid var(--border-color) !important;
    /* Sử dụng biến token */
    background: var(--bg-secondary);
    /* Nền phụ đồng bộ */
    border-radius: 12px;
    /* Bo góc chuẩn SaaS */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Shadow nhẹ, tinh tế */
    padding: 24px !important;
    /* Khoảng cách nội dung bên trong khối (Padding) */
}

.account-main-container {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 20px;
    padding: 40px !important;
    /* Tạo không gian thở cho khung viền ngoài */
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Khoảng cách chuẩn giữa các section */
}

/* Account page inputs and fields */
.account-wrapper input[type="text"],
.account-wrapper input[type="email"],
.account-wrapper input[type="url"],
.account-wrapper input[type="password"],
.account-wrapper input[type="date"],
.account-wrapper select,
.account-wrapper textarea {
    width: 100%;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.account-wrapper input[type="text"]:focus,
.account-wrapper input[type="email"]:focus,
.account-wrapper input[type="url"]:focus,
.account-wrapper input[type="password"]:focus,
.account-wrapper input[type="date"]:focus,
.account-wrapper select:focus,
.account-wrapper textarea:focus {
    border-color: var(--accent-color) !important;
}

.account-wrapper input[disabled] {
    color: var(--text-secondary) !important;
    cursor: not-allowed;
}

.theme-card-opt {
    flex: 1;
    min-width: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.theme-card-opt:hover {
    transform: translateY(-2px);
    border-color: var(--border-color) !important;
}

#theme-cards-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    #theme-cards-wrapper {
        flex-direction: column;
    }

    .theme-card-opt {
        min-width: 100%;
    }
}

/* =================================================================
   PHASE 2 — CRITICAL LIGHT MODE REPAIRS
   All hardcoded dark colors replaced with Design Tokens.
   Covers: WP nav submenu, thumbnail placeholder, post content,
           modals, login cards, single post/album/artifact pages.
   ================================================================= */

/* ─── WORDPRESS NAV SUB-MENU (Desktop Dropdown) ──────────────── */
.header-nav-menu .sub-menu,
.header-nav-menu ul ul {
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.header-nav-menu .sub-menu li a,
.header-nav-menu ul ul li a {
    color: var(--text-secondary) !important;
}

.header-nav-menu .sub-menu li a:hover,
.header-nav-menu ul ul li a:hover {
    background: var(--card-hover-bg) !important;
    color: var(--accent-color) !important;
}

.header-nav-menu>li>a {
    color: var(--text-primary) !important;
}

/* ─── THUMBNAIL PLACEHOLDER (no-image state) ─────────────────── */
/* All templates use inline style="background: #111" — override via !important */
/* index.php, search.php, archive-zen_album.php, single-*.php */
.zen-card-media>div,
.zen-card-media-wrap>div,
.card-thumbnail>div,
.item-thumbnail>div {
    background: var(--thumbnail-placeholder-bg) !important;
    color: var(--text-secondary) !important;
}

/* Fallback: any direct child div with inline #111 inside media wrappers */
.zen-card .card-img-wrap div[style*="#111"],
.zen-card .card-img-wrap div[style*="background: #11"],
div[style*="background: #111"] {
    background: var(--thumbnail-placeholder-bg) !important;
}

/* ─── SINGLE POST / ARTIFACT / ALBUM — CONTENT AREA ────────────
   These pages have heavy inline dark styles. We use section-level
   class selectors or body class targeting.
   ─────────────────────────────────────────────────────────────── */
.single-zen_artifact .zen-artifact-wrap,
.single-zen_artifact .artifact-content-area,
.single-post .post-content-wrap,
.single-post .post-body,
.single-zen_album .album-content-wrap {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Post article typography */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
    color: var(--text-primary) !important;
}

.post-content p,
.post-content li,
.post-content blockquote {
    color: var(--text-secondary) !important;
}

/* ─── MODAL DIALOGS (.zs-modal-box) ─────────────────────────── */
.zs-modal-box {
    background: var(--modal-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zs-modal-box h2,
.zs-modal-box h3,
.zs-modal-box p,
.zs-modal-box label,
.zs-modal-box span {
    color: var(--text-primary) !important;
}

.zs-modal-box input,
.zs-modal-box select,
.zs-modal-box textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Modal overlay background */
.zs-modal-overlay,
.zen-modal-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* ─── LOGIN / SIGN-IN CARDS ──────────────────────────────────── */
.zen-login-card,
.zen-register-card,
.zen-forgot-card {
    background: var(--signin-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zen-login-card h2,
.zen-register-card h2,
.zen-forgot-card h2 {
    color: var(--text-primary) !important;
}

.zen-login-card p,
.zen-login-card label,
.zen-register-card p,
.zen-register-card label {
    color: var(--text-secondary) !important;
}

.zen-login-card input[type="text"],
.zen-login-card input[type="email"],
.zen-login-card input[type="password"],
.zen-register-card input,
.zen-forgot-card input {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ─── PRICING PAGE MODAL / CHECKOUT ──────────────────────────── */
.zen-checkout-card,
.zen-payment-card,
.zen-pricing-modal-box {
    background: var(--modal-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.zen-checkout-card p,
.zen-checkout-card span,
.zen-payment-card p,
.zen-payment-card span {
    color: var(--text-secondary) !important;
}

/* ─── SIGN-OUT & DANGER ZONE border fix ──────────────────────── */
html[data-theme="light"] .zen-danger-zone,
html[data-theme="light"] div[style*="rgba(244, 67, 54"] {
    border-color: rgba(244, 67, 54, 0.3) !important;
    background: rgba(244, 67, 54, 0.04) !important;
}

/* ─── PROFILE AVATAR WRAPPER light mode ─────────────────────── */
html[data-theme="light"] .profile-avatar-wrapper {
    border-color: var(--bg-secondary) !important;
    background: var(--bg-secondary) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12) !important;
}

/* ─── DROPDOWN TEXT VISIBILITY ───────────────────────────────── */
.lang-dropdown a {
    color: var(--text-secondary) !important;
}

.lang-dropdown a:hover {
    color: var(--accent-color) !important;
    background: var(--card-hover-bg) !important;
}

.lang-btn {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* ─── LIGHT MODE: global `color: #fff` overrides ────────────── */
html[data-theme="light"] strong[style*="color: #fff"],
html[data-theme="light"] span[style*="color: #fff"],
html[data-theme="light"] p[style*="color: #fff"],
html[data-theme="light"] h1[style*="color: #fff"],
html[data-theme="light"] h2[style*="color: #fff"],
html[data-theme="light"] h3[style*="color: #fff"],
html[data-theme="light"] div[style*="color: #fff"],
html[data-theme="light"] li[style*="color: #fff"],
html[data-theme="light"] a[style*="color: #fff"] {
    color: var(--text-primary) !important;
}

/* ─── LIGHT MODE: rgba(255,255,255,...) text visible → dark ──── */
html[data-theme="light"] span[style*="color: rgba(255"],
html[data-theme="light"] p[style*="color: rgba(255"],
html[data-theme="light"] div[style*="color: rgba(255,255,255,0.6)"],
html[data-theme="light"] div[style*="color: rgba(255,255,255,0.5)"],
html[data-theme="light"] div[style*="color: rgba(255,255,255,0.4)"] {
    color: var(--text-secondary) !important;
}

/* ─── LIGHT MODE: WHITE border on white bg fix ───────────────── */
html[data-theme="light"] div[style*="border: 1px solid rgba(255,255,255"],
html[data-theme="light"] div[style*="border: 1px solid rgba(255, 255, 255"] {
    border-color: var(--border-color) !important;
}

/* ─── FREE plan badge light mode ────────────────────────────── */
html[data-theme="light"] span[style*="background: rgba(255, 255, 255, 0.08)"] {
    background: rgba(15, 23, 42, 0.06) !important;
    color: var(--text-secondary) !important;
}

/* ─── SINGLE ALBUM DETAIL PAGE light mode overrides ────────── */
html[data-theme="light"] .album-detail-page,
html[data-theme="light"] div[style*="background-color: #060608"],
html[data-theme="light"] div[style*="background-color:#060608"] {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .album-title,
html[data-theme="light"] .track-title-vn,
html[data-theme="light"] .tracklist-title,
html[data-theme="light"] .suno-track-title,
html[data-theme="light"] .variant-value,
html[data-theme="light"] .linked-article-title,
html[data-theme="light"] .theater-header h1 {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .track-card,
html[data-theme="light"] .suno-track-item,
html[data-theme="light"] .variant-box,
html[data-theme="light"] .social-post-card,
html[data-theme="light"] .linked-article-card {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .suno-track-item:hover,
html[data-theme="light"] .linked-article-card:hover {
    background: var(--card-hover-bg) !important;
    border-color: var(--gold-color) !important;
}

html[data-theme="light"] .prompt-engine-box {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .prompt-copy-btn {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .prompt-copy-btn:hover {
    background: var(--gold-color) !important;
    color: #000 !important;
}

html[data-theme="light"] .album-tag-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .track-cover-wrapper {
    background: var(--thumbnail-placeholder-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .track-header {
    border-bottom-color: var(--border-color) !important;
}

/* ─── LIGHT MODE: Promo Channel Cards & Social Post Cards ──── */
html[data-theme="light"] .zen-promo-channel-card {
    border-color: rgba(184, 134, 11, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    background: var(--card-bg, #ffffff) !important;
}

html[data-theme="light"] .zen-promo-channel-card:hover {
    border-color: var(--accent-color, #D4AF37) !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2) !important;
}

html[data-theme="light"] .zen-promo-channel-card .promo-domain-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(184, 134, 11, 0.5) !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .zen-promo-channel-card .promo-domain-btn:hover {
    background: var(--accent-color, #D4AF37) !important;
    color: #000000 !important;
    border-color: var(--accent-color, #D4AF37) !important;
}

html[data-theme="light"] .social-post-card .post-desc {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .social-post-card .btn-social-action {
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .social-post-card .btn-social-action:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #996515 !important;
    border-color: #996515 !important;
}

/* ─── YOUTUBE ITEM CARD — Premium Card Redesign ──────────────── */
.youtube-item-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 20px 18px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.youtube-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.55;
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.youtube-item-card:hover {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.32),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.22);
}

.youtube-item-card h4 {
    color: var(--text-primary) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.01em;
}

/* Light Mode Override */
html[data-theme="light"] .youtube-item-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.08),
        0 1px 4px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .youtube-item-card:hover {
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.12),
        0 2px 8px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(184, 134, 11, 0.28) !important;
}

html[data-theme="light"] .youtube-item-card::before {
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.4;
}

/* ─── YOUTUBE CARD HELPERS ──────────────────────────────────── */
.yt-card-title {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.yt-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 12px 0 8px 0;
}

.yt-card-action {
    margin: 14px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-watch-youtube {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FF0000;
    color: #fff !important;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.35);
}

.btn-watch-youtube:hover {
    background: #CC0000;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255, 0, 0, 0.45);
    color: #fff !important;
}

.btn-watch-youtube svg {
    flex-shrink: 0;
    fill: #fff;
}

html[data-theme="light"] .custom-audio-player {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .audio-progress-bar {
    background: var(--border-color) !important;
}

html[data-theme="light"] .viral-hook-table {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .viral-hook-table th,
html[data-theme="light"] .viral-hook-table td {
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .viral-hook-table th {
    background: rgba(212, 175, 55, 0.08) !important;
}

html[data-theme="light"] .btn-download-track:hover {
    color: var(--bg-primary) !important;
}

/* ─── HOME-PAGE CARD HOVER OVERLAY ────────────────────────── */
html[data-theme="light"] .zen-card-quote {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .zen-card-quote p {
    color: var(--text-primary) !important;
}

/* ─── COPYRIGHT & DISCLAIMER SYSTEM ───────────────────────── */
html[data-theme="light"] p[style*="color:rgba(255"],
html[data-theme="light"] p[style*="color: rgba(255"],
html[data-theme="light"] span[style*="color:rgba(255"],
html[data-theme="light"] span[style*="color: rgba(255"] {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] div[style*="background:rgba(255,255,255,0.025)"],
html[data-theme="light"] div[style*="background: rgba(255,255,255,0.025)"] {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal-"]>div,
html[data-theme="light"] div[id^="zen-cr-modal"]>div {
    background: var(--modal-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal"] h3 {
    color: var(--text-primary) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal"] p {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal"] input,
html[data-theme="light"] div[id^="zen-cr-modal"] textarea {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal"] button {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] div[id^="zen-cr-modal"] button[onclick*="style.display='none'"] {
    color: var(--text-secondary) !important;
}

/* ─── STUDIO & PROFILE EDIT ACTION BUTTON ─────────────────── */
html[data-theme="light"] .profile-circle-btn.edit-btn {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .profile-circle-btn.edit-btn:hover {
    border-color: var(--gold-color) !important;
    color: var(--gold-color) !important;
}

/* ─── POPUP LOGIN / SIGN UP CARD ──────────────────────────── */
html[data-theme="light"] .zen-auth-card {
    background: var(--signin-card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .zen-auth-card #auth-title {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .zen-auth-card .social-btn {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .zen-auth-card .social-btn:hover {
    background: var(--card-hover-bg) !important;
}

html[data-theme="light"] .zen-auth-card input {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .zen-auth-card input:focus {
    border-color: var(--accent-color) !important;
}

html[data-theme="light"] .auth-close-btn {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .auth-close-btn:hover {
    color: var(--text-primary) !important;
    background: var(--card-hover-bg) !important;
}

/* ─── PROFILE BANNER SOCIAL LINKS ─────────────────────────── */
html[data-theme="light"] .profile-banner-socials a {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .profile-banner-socials a[title="Spotify"] {
    color: #1ed760 !important;
}

html[data-theme="light"] .profile-banner-socials a[title="Instagram"] {
    color: #e1306c !important;
}

html[data-theme="light"] .profile-banner-socials a[title="TikTok"] {
    color: #000000 !important;
}

html[data-theme="light"] .profile-banner-socials a[title="YouTube"] {
    color: #ff0000 !important;
}

html[data-theme="light"] .profile-banner-socials a[title="𝕏"] {
    color: #000000 !important;
}

/* ─── PROFILE STATS & BADGES UNIFICATION ─────────────────── */
html[data-theme="light"] .profile-action-buttons a.studio-btn {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .profile-action-buttons a.studio-btn:hover {
    background: var(--gold-color) !important;
    color: #000 !important;
    border-color: transparent !important;
}

html[data-theme="light"] .trophy-case-header {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .profile-stats-row {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .profile-stats-row svg {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .profile-stat-text strong {
    color: var(--text-primary) !important;
}

/* ─── SAVED ARTWORKS BOARD NAVIGATION ────────────────────── */
html[data-theme="light"] .board-nav-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .board-nav-btn.active {
    background: var(--card-bg) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .board-nav-btn:hover {
    background: var(--card-hover-bg) !important;
    color: var(--text-primary) !important;
}

/* ─── ABOUT TAB BIO & BADGES WALL ────────────────────────── */
html[data-theme="light"] #tab-about-content>div {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] #tab-about-content h3 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

html[data-theme="light"] #tab-about-content p {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .badge-wall-container {
    border-top-color: var(--border-color) !important;
}

html[data-theme="light"] .badge-wall-container h4 {
    color: var(--text-primary) !important;
    border-left-color: var(--gold-color) !important;
}

html[data-theme="light"] .profile-badge-card {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .profile-badge-card strong {
    color: var(--text-primary) !important;
}

html[data-theme="light"] .profile-badge-card span {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .profile-badge-card.locked {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    opacity: 0.6 !important;
}

html[data-theme="light"] .profile-badge-card.locked strong {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] .pin-manager-trigger {
    background: rgba(184, 134, 11, 0.1) !important;
    border-color: rgba(184, 134, 11, 0.3) !important;
    color: var(--gold-color) !important;
}

html[data-theme="light"] .pin-manager-trigger:hover {
    background: var(--gold-color) !important;
    color: #fff !important;
}

/* ─── PIN MANAGER MODAL ───────────────────────────────────── */
html[data-theme="light"] #zen-pin-manager-modal {
    background: rgba(15, 23, 42, 0.4) !important;
}

html[data-theme="light"] #zen-pin-manager-modal>div {
    background: var(--modal-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal h3 {
    color: var(--text-primary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal p {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal label {
    border-color: var(--border-color) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal label:hover {
    background: var(--card-hover-bg) !important;
}

html[data-theme="light"] #zen-pin-manager-modal label strong {
    color: var(--text-primary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal button {
    color: var(--text-secondary) !important;
}

html[data-theme="light"] #zen-pin-manager-modal button:hover {
    color: var(--text-primary) !important;
}

/* ─── TECHNICAL DIRECTIVE: CSS LAYOUT CLEANUP ───────────────── */
.artifact-item,
.zen-image-container,
.zen-video-container {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* ─── END PHASE 2 CRITICAL FIXES ────────────────────────────── */

/* ─── PHASE 3: ZEN INTERACTION LAYER (RESONATE & ALIGN) ─────── */
.interaction-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interaction-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect-anim 0.6s ease-out;
    background: rgba(212, 175, 55, 0.35);
    pointer-events: none;
}

@keyframes ripple-effect-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse Ring animation for Notification Badge */
.zs-notif-badge {
    position: relative;
}

.zs-notif-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2.2px solid var(--accent-color, #D4AF37);
    border-radius: 50%;
    animation: pulse-ring-anim 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes pulse-ring-anim {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ─── OMNIPINS COVER & VIDEO STABILITY UPGRADE ────────────────── */

/* Album Cover Title Overlay */
.theater-header h1.zen-cover-title-overlay,
h1.zen-cover-title-overlay {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
}

/* Unified Youtube Video Kit Layout & Aesthetics */
.zen-video-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.zen-video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zen-video-item:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px);
}

.zen-video-item.zen-video-short {
    aspect-ratio: 9 / 16;
    max-width: 315px;
    margin-left: auto;
    margin-right: auto;
}

.zen-video-item iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    display: block;
}

html[data-theme="light"] .zen-video-item {
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* --- Accordion (Collapsible) Sections for Album Cover Arts --- */
.zs-accordion-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.zs-accordion-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.zs-accordion-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.zs-accordion-header.active {
    border-bottom-color: var(--border-color);
}

.zs-accordion-body {
    padding: 20px;
    display: none;
}

.zs-accordion-toggle-icon {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.zs-accordion-header.active .zs-accordion-toggle-icon {
    transform: rotate(180deg);
}

html[data-theme="light"] .zs-accordion-section {
    background: var(--bg-secondary, #ffffff) !important;
}

html[data-theme="light"] .zs-accordion-header {
    background: rgba(15, 23, 42, 0.02) !important;
    color: var(--text-primary, #0f172a) !important;
}

html[data-theme="light"] .zs-accordion-header:hover {
    background: rgba(15, 23, 42, 0.04) !important;
}

/* --- Collapsible Track Cards for Tracklist Manager --- */
.zs-track-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color, #D4AF37) !important;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.zs-track-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.zs-track-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.zs-track-body {
    padding: 18px;
    border-top: 1px solid var(--border-color);
    display: none;
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .zs-track-card {
    background: var(--bg-secondary, #ffffff) !important;
}

html[data-theme="light"] .zs-track-header {
    background: rgba(15, 23, 42, 0.01) !important;
    color: var(--text-primary, #0f172a) !important;
}

/* --- Account Legal & Resources Menu (Adaptive Light/Dark Mode) --- */
.zen-legal-nav-section {
    margin-top: 32px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.zen-legal-nav-section .zen-section-title {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-color, #D4AF37);
    margin-bottom: 16px;
}

body.dark-mode .zen-legal-nav-section,
[data-theme="dark"] .zen-legal-nav-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .zen-legal-nav-section {
    border-top-color: var(--border-color, #E2E8F0);
}

.zen-legal-menu-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.zen-legal-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

html[data-theme="light"] .zen-legal-menu-item {
    background: var(--bg-secondary, #FFFFFF);
    border-color: var(--border-color, #E2E8F0);
}

body.dark-mode .zen-legal-menu-item,
[data-theme="dark"] .zen-legal-menu-item {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border-color: var(--border-color, rgba(255, 255, 255, 0.06));
}

.zen-legal-menu-item:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.06));
    border-color: var(--accent-color, #D4AF37);
    transform: translateY(-1px);
}

html[data-theme="light"] .zen-legal-menu-item:hover {
    background: var(--card-hover-bg, #F8FAFC);
    border-color: var(--accent-color, #B8860B);
}

body.dark-mode .zen-legal-menu-item:hover,
[data-theme="dark"] .zen-legal-menu-item:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.07));
}

.zen-legal-icon {
    font-size: 20px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.zen-legal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zen-legal-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #E2E8F0);
}

html[data-theme="light"] .zen-legal-label {
    color: var(--text-primary, #0F172A);
}

body.dark-mode .zen-legal-label,
[data-theme="dark"] .zen-legal-label {
    color: var(--text-primary, #FFFFFF);
}

.zen-legal-desc {
    font-size: 12px;
    color: var(--text-secondary, #94A3B8);
    margin-top: 2px;
}

html[data-theme="light"] .zen-legal-desc {
    color: var(--text-secondary, #64748B);
}

body.dark-mode .zen-legal-desc,
[data-theme="dark"] .zen-legal-desc {
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
}

.zen-legal-arrow {
    font-size: 16px;
    color: var(--text-secondary, #94A3B8);
    transition: transform 0.2s ease, color 0.2s ease;
}

.zen-legal-menu-item:hover .zen-legal-arrow {
    transform: translateX(3px);
    color: var(--accent-color, #D4AF37);
}

/* =================================================================
   OMNIPINS ADAPTIVE LIGHT/DARK MODE COMPONENT FIXES
   Covers: Limited Registration Promo, Gateway Options & Switcher
   ================================================================= */

/* --- PROMO COUNTDOWN BANNER (Adaptive Light/Dark Mode) --- */
.promo-countdown-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(20, 20, 25, 0.9) 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.08) !important;
}

.promo-countdown-banner h4,
.promo-countdown-banner .promo-title {
    color: var(--gold-color) !important;
}

.promo-countdown-banner p,
.promo-countdown-banner .promo-desc {
    color: var(--text-primary) !important;
}

.promo-countdown-banner .timer-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.promo-countdown-banner .timer-number {
    color: var(--text-primary) !important;
}

.promo-countdown-banner .timer-number-seconds {
    color: var(--gold-color) !important;
    text-shadow: 0 0 10px var(--gold-glow) !important;
}

.promo-countdown-banner .timer-label {
    color: var(--text-secondary) !important;
}

.promo-countdown-banner .timer-separator {
    color: var(--text-secondary) !important;
    opacity: 0.5 !important;
}

.promo-countdown-banner .valid-text {
    color: var(--text-secondary) !important;
}

/* Light Mode Overrides for Promo Countdown Banner */
html[data-theme="light"] .promo-countdown-banner {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
    border: 1.5px solid rgba(184, 134, 11, 0.35) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), inset 0 0 15px rgba(184, 134, 11, 0.05) !important;
}

html[data-theme="light"] .promo-countdown-banner .timer-box {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05) !important;
}

/* --- PAYMENT GATEWAY OPTIONS (Adaptive Light/Dark Mode) --- */
.gateway-option-item {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.gateway-option-item:hover {
    background: var(--card-hover-bg) !important;
    border-color: var(--gold-color) !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.gateway-option-item .gateway-name {
    color: var(--text-primary) !important;
}

.gateway-option-item .gateway-subtext {
    color: var(--text-secondary) !important;
}

.gateway-option-item:hover .gateway-name {
    color: var(--gold-color) !important;
}

html[data-theme="light"] .gateway-option-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .gateway-option-item:hover {
    background: var(--card-hover-bg) !important;
}

/* --- TAG SELECTOR COMPONENT (Light/Dark Mode Adaptive) --- */
.zs-tag-container-wrap {
    margin-bottom: 6px;
}

.zs-tag-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    background: var(--input-bg, rgba(0, 0, 0, 0.2));
    color: var(--text-primary, #ffffff);
    transition: all 0.2s ease;
}

.zs-tag-search-input:focus {
    outline: none;
    border-color: var(--gold-color, #D4AF37);
    box-shadow: 0 0 0 2px var(--accent-glow, rgba(212, 175, 55, 0.15));
}

.zs-tag-pill-list {
    height: 105px;
    overflow-y: auto;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    border-radius: 8px;
    padding: 8px;
    background: transparent !important;
    /* Minimalist background */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    transition: all 0.2s ease;
}

.zs-tag-pill-list::-webkit-scrollbar {
    width: 4px;
}

.zs-tag-pill-list::-webkit-scrollbar-track {
    background: transparent;
}

.zs-tag-pill-list::-webkit-scrollbar-thumb {
    background: var(--border-color, rgba(255, 255, 255, 0.2));
    border-radius: 3px;
}

.zs-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
}

.zs-tag-pill:hover {
    border-color: var(--gold-color, #D4AF37);
    background: rgba(255, 255, 255, 0.08);
}

.zs-tag-pill.is-selected {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: var(--gold-color, #D4AF37) !important;
    color: #D4AF37 !important;
    font-weight: 600;
}

.zs-tag-badge {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 700;
    margin-left: 2px;
}

/* Light Mode Adaptations */
html[data-theme="light"] .zs-tag-search-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .zs-tag-search-input::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .zs-tag-pill-list {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .zs-tag-pill {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .zs-tag-pill:hover {
    background: #e2e8f0 !important;
    border-color: #b8860b !important;
}

html[data-theme="light"] .zs-tag-pill.is-selected {
    background: rgba(184, 134, 11, 0.15) !important;
    border-color: #b8860b !important;
    color: #b8860b !important;
}

/* ═══════════════════════════════════════════════════════════════
   STUDIO STATS — Top Tác Phẩm Nổi Bật Component
   Full Light / Dark Mode token-driven support
   ═══════════════════════════════════════════════════════════════ */

/* ─── Card Container ─────────────────────────────────────────── */
.studio-top-popular-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: background 0.3s ease, border-color 0.3s ease;
}

html[data-theme="light"] .studio-top-popular-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07) !important;
}

/* ─── Heading ────────────────────────────────────────────────── */
.studio-top-popular-heading {
    font-size: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    letter-spacing: -0.01em;
}

/* ─── List Item Row ──────────────────────────────────────────── */
.top-popular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    gap: 8px;
}

.top-popular-item:hover {
    background: var(--card-hover-bg);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(2px);
}

html[data-theme="light"] .top-popular-item {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="light"] .top-popular-item:hover {
    background: rgba(184, 134, 11, 0.04) !important;
    border-color: rgba(184, 134, 11, 0.2) !important;
}

/* ─── Left Column (rank + title) ────────────────────────────── */
.top-popular-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* ─── Rank Badge ─────────────────────────────────────────────── */
.top-popular-rank {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    min-width: 20px;
    flex-shrink: 0;
    text-align: center;
}

/* ─── Title Link ─────────────────────────────────────────────── */
.top-popular-link {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-family: var(--font-serif);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    min-width: 0;
}

.top-popular-link:hover {
    color: var(--accent-color) !important;
    text-decoration: none !important;
}

/* ─── Count Badge ────────────────────────────────────────────── */
.top-popular-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ─── Empty / Loading State ──────────────────────────────────── */
.studio-popular-empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    text-align: center;
    padding: 12px 0;
}

/* ==========================================================================
   Zen Social & Metadata Card Builder (Glassmorphism & Zen Clean)
   ========================================================================== */
.zen-seo-social-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.02));
    backdrop-filter: var(--glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--glass-blur, blur(12px));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.zen-seo-social-card:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.04));
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.zen-seo-social-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.zen-seo-social-card .card-number {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color, #D4AF37);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zen-seo-social-card .card-remove-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zen-seo-social-card .card-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.zen-seo-social-card .card-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.zen-seo-social-card .card-section:last-child {
    margin-bottom: 0;
}

.zen-seo-social-card .card-section-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.zen-seo-social-card .zs-field {
    margin-bottom: 12px;
}

.zen-seo-social-card .zs-field:last-child {
    margin-bottom: 0;
}

.zen-seo-social-card .zs-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.zen-field-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

/* ─── Premium SEO & Social Post Card ─────────────────────────── */
.social-post-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.02));
    backdrop-filter: var(--glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--glass-blur, blur(12px));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-post-card:hover {
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.04));
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.social-post-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.social-post-card h4.post-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.social-post-card .social-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

/* Platform badge colors */
.social-badge.platform-facebook {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}
.social-badge.platform-tiktok {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.social-badge.platform-instagram,
.social-badge.platform-reels {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.2);
}
.social-badge.platform-pinterest {
    background: rgba(189, 8, 28, 0.12);
    color: #bd081c;
    border: 1px solid rgba(189, 8, 28, 0.2);
}
.social-badge.platform-other {
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-post-card .media-wrapper {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-post-card .media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-post-card:hover .media-wrapper img {
    transform: scale(1.02);
}

.social-post-card .post-desc {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    white-space: pre-wrap;
    font-family: inherit;
}

.social-post-card .post-actions {
    display: flex;
    gap: 10px;
}

.social-post-card .btn-social-action {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-post-card .btn-social-action:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color, #D4AF37);
    border-color: var(--accent-color, #D4AF37);
    text-decoration: none;
}

/* ─── Premium Promo Channel Card (Music & Video Tabs) ────────── */
.zen-promo-channel-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #0a0a0c;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.zen-promo-channel-card:hover {
    transform: scale(1.015);
    border-color: var(--accent-color, #D4AF37);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
}

.zen-promo-channel-card .promo-banner-img,
.zen-promo-channel-card .promo-banner-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.88);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.zen-promo-channel-card .promo-banner-fallback {
    background: linear-gradient(135deg, #111, #222, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.zen-promo-channel-card:hover .promo-banner-img {
    filter: brightness(0.96);
    transform: scale(1.02);
}

.zen-promo-channel-card .promo-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.zen-promo-channel-card .promo-bottom-bar {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
}

.zen-promo-channel-card .promo-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.zen-promo-channel-card .promo-indicator-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zen-promo-channel-card .promo-channel-label {
    color: #ffffff;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-promo-channel-card .promo-domain-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 20px;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.78rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.zen-promo-channel-card .promo-domain-btn:hover {
    background: var(--accent-color, #D4AF37);
    color: #000000;
    border-color: var(--accent-color, #D4AF37);
}

@media (max-width: 640px) {
    .zen-promo-channel-card {
        aspect-ratio: 16 / 9;
        min-height: 110px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    .zen-promo-channel-card .promo-bottom-bar {
        bottom: 8px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }
    .zen-promo-channel-card .promo-label-group {
        gap: 6px;
    }
    .zen-promo-channel-card .promo-channel-label {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
    .zen-promo-channel-card .promo-domain-btn {
        padding: 4px 10px;
        font-size: 0.68rem;
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .zen-promo-channel-card .promo-channel-label {
        font-size: 0.64rem;
    }
    .zen-promo-channel-card .promo-domain-btn {
        padding: 3px 8px;
        font-size: 0.62rem;
    }
}

/* ============================================================
   PERSISTENT AUDIO BAR V2.0 & QUEUE DRAWER — Spotify / Apple Music Style
   ============================================================ */

:root {
    --zen-bg-primary: #0B0B0B;
    --zen-card-bg: rgba(255, 255, 255, 0.03);
    --zen-text-primary: #E2E8F0;
    --zen-text-secondary: #94A3B8;
    --zen-border-color: rgba(255, 255, 255, 0.08);
    --zen-accent: #D4AF37;
}

html[data-theme="light"] {
    --zen-bg-primary: #FCFCFC;
    --zen-card-bg: rgba(0, 0, 0, 0.02);
    --zen-text-primary: #1A1A1A;
    --zen-text-secondary: #475569;
    --zen-border-color: rgba(0, 0, 0, 0.06);
    --zen-accent: #B8860B;
}

/* Persistent Footer Audio Bar Node (outside .site-content) */
#global-audio-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--zen-border-color);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    padding: 10px 24px;
}
#global-audio-bar.active {
    bottom: 0;
}

html[data-theme="light"] #global-audio-bar {
    background: rgba(255, 255, 255, 0.94) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -5px 25px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .zen-audio-title,
html[data-theme="light"] #zen-audio-title {
    color: #0F172A !important;
}

html[data-theme="light"] .zen-audio-artist,
html[data-theme="light"] #zen-audio-artist {
    color: #64748B !important;
}

html[data-theme="light"] .zen-audio-btn {
    color: #475569 !important;
}

html[data-theme="light"] .zen-audio-btn:hover {
    color: #0F172A !important;
}

html[data-theme="light"] #zen-player-v2-close,
html[data-theme="light"] .zen-audio-close-v2 {
    color: #64748B !important;
}

html[data-theme="light"] #zen-player-v2-close:hover,
html[data-theme="light"] .zen-audio-close-v2:hover {
    color: #0F172A !important;
}

html[data-theme="light"] .zen-audio-time {
    color: #64748B !important;
}

html[data-theme="light"] .zen-audio-seekbar {
    background: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .zen-bitrate-select,
html[data-theme="light"] #zen-sleep-timer-select {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1E293B !important;
}

html[data-theme="light"] .zen-queue-toggle-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1E293B !important;
}

html[data-theme="light"] .zen-queue-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: #B8860B !important;
    color: #B8860B !important;
}

html[data-theme="light"] #zen-queue-drawer {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .zen-queue-header {
    color: #0F172A !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] #zen-queue-close-btn {
    color: #64748B !important;
}

html[data-theme="light"] #zen-queue-close-btn:hover {
    color: #0F172A !important;
}

html[data-theme="light"] .zen-queue-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .zen-queue-item-title {
    color: #0F172A !important;
}

html[data-theme="light"] .zen-queue-item-artist {
    color: #64748B !important;
}

html[data-theme="light"] #zen-creator-toast {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .zen-toast-text {
    color: #334155 !important;
}

html[data-theme="light"] .zen-toast-text strong {
    color: #0F172A !important;
}

.zen-audio-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    align-items: center;
    gap: 20px;
}

/* 1. Track Info Section */
.zen-audio-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.zen-audio-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--zen-border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.zen-audio-thumb.playing {
    animation: zenSpin 12s linear infinite;
}

@keyframes zenSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.zen-audio-details {
    min-width: 0;
}

.zen-audio-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.zen-audio-artist {
    font-size: 0.76rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 2. Controls & Seekbar Section */
.zen-audio-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.zen-audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zen-audio-btn {
    background: none;
    border: none;
    color: var(--zen-text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.zen-audio-btn:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

.zen-audio-btn.active {
    color: var(--zen-accent);
}

.zen-audio-btn-play {
    width: 40px;
    height: 40px;
    background: var(--zen-accent);
    color: #060608;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.zen-audio-btn-play:hover {
    transform: scale(1.08);
    color: #060608;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Interactive Seekbar */
.zen-audio-seekbar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.zen-audio-time {
    font-size: 0.72rem;
    font-family: var(--font-mono, monospace);
    color: var(--zen-text-secondary);
    min-width: 38px;
    text-align: center;
}

.zen-audio-seekbar {
    flex: 1;
    height: 6px;
    background: var(--zen-border-color);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.zen-audio-seek-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--zen-accent) 0%, #E6CA65 100%);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* 3. Extra Tools Section (Bitrate, Sleep Timer, Queue Drawer) */
.zen-audio-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.zen-bitrate-select {
    background: var(--zen-card-bg);
    border: 1px solid var(--zen-border-color);
    color: var(--zen-text-primary);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.zen-queue-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--zen-card-bg);
    border: 1px solid var(--zen-border-color);
    color: var(--zen-text-primary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zen-queue-toggle-btn:hover {
    border-color: var(--zen-accent);
    color: var(--zen-accent);
}

.zen-audio-close-v2,
#zen-player-v2-close {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.zen-audio-close-v2:hover,
#zen-player-v2-close:hover {
    color: #FFFFFF;
}

.zen-eq-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.zen-eq-bar {
    width: 2.5px;
    background: var(--zen-accent);
    border-radius: 1px;
    height: 4px;
}

.zen-eq-wave.playing .zen-eq-bar:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite alternate; }
.zen-eq-wave.playing .zen-eq-bar:nth-child(2) { animation: eqBar 0.6s ease-in-out infinite alternate 0.2s; }
.zen-eq-wave.playing .zen-eq-bar:nth-child(3) { animation: eqBar 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes eqBar {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Glassmorphic Queue Drawer (#zen-queue-drawer) */
#zen-queue-drawer {
    position: fixed;
    bottom: 72px;
    right: 24px;
    width: 380px;
    max-height: 480px;
    background: rgba(12, 12, 15, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--zen-border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#zen-queue-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.zen-queue-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--zen-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--zen-text-primary);
}

.zen-queue-list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 380px;
}

.zen-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zen-queue-item:hover {
    background: var(--zen-card-bg);
}

.zen-queue-item.active {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--zen-accent);
}

.zen-queue-item-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.zen-queue-item-info {
    min-width: 0;
    flex: 1;
}

.zen-queue-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--zen-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zen-queue-item-artist {
    font-size: 0.72rem;
    color: var(--zen-text-secondary);
}

/* 3-second Branding Creator Toast */
#zen-creator-toast {
    position: fixed;
    bottom: 84px;
    left: 24px;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--zen-accent);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99997;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#zen-creator-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.zen-toast-text {
    font-size: 0.78rem;
    color: var(--zen-text-primary);
}

.zen-toast-cta {
    display: inline-block;
    background: var(--zen-accent);
    color: #060608;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* Zen Micro-card Track Styling (.zen-track-card) */
.zen-track-card {
    border-radius: 12px;
    background: var(--zen-card-bg);
    border: 1px solid var(--zen-border-color);
    padding: 12px 16px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.zen-track-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.zen-track-card.active-playing {
    border: 1px solid var(--zen-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* Mobile Stacked Layout (TC-AUDIO-05) */
@media (max-width: 768px) {
    #global-audio-bar {
        padding: 8px 14px !important;
    }
    html[data-theme="light"] #global-audio-bar {
        background: rgba(255, 255, 255, 0.96) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
    }
    html[data-theme="light"] .zen-audio-title,
    html[data-theme="light"] #zen-audio-title {
        color: #0F172A !important;
    }
    html[data-theme="light"] .zen-audio-artist,
    html[data-theme="light"] #zen-audio-artist {
        color: #64748B !important;
    }
    html[data-theme="light"] .zen-audio-btn {
        color: #475569 !important;
    }
    html[data-theme="light"] #zen-player-v2-close,
    html[data-theme="light"] .zen-audio-close-v2 {
        color: #64748B !important;
    }
    html[data-theme="light"] .zen-queue-toggle-btn {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
        color: #1E293B !important;
    }
    .zen-audio-bar-inner {
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "info tools"
            "center center" !important;
        gap: 6px !important;
    }
    .zen-audio-track-info {
        grid-area: info;
        gap: 8px !important;
        min-width: 0;
    }
    .zen-audio-thumb {
        width: 38px !important;
        height: 38px !important;
    }
    .zen-audio-title {
        font-size: 0.82rem !important;
        max-width: 160px;
    }
    .zen-audio-artist {
        font-size: 0.68rem !important;
        max-width: 160px;
    }
    .zen-audio-tools {
        grid-area: tools;
        gap: 4px !important;
    }
    #zen-bitrate-select,
    #zen-sleep-timer-select {
        display: none !important; /* Hide non-essential dropdowns on mobile to prevent overcrowding */
    }
    .zen-queue-toggle-btn {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
    }
    .zen-audio-center {
        grid-area: center;
        width: 100% !important;
    }
    .zen-audio-seekbar-container {
        max-width: 100% !important;
        gap: 6px !important;
    }
    .zen-audio-controls {
        gap: 12px !important;
    }
    .zen-audio-btn-play {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    #zen-queue-drawer {
        width: 100% !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 95px !important;
        border-radius: 16px 16px 0 0 !important;
    }
}

@media (max-width: 480px) {
    #zen-btn-shuffle,
    #zen-btn-repeat {
        display: none !important; /* Hide shuffle/repeat on small phone screens to keep main play/prev/next centered */
    }
}