@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-lite-webfont@1.1.0/style.css");
@font-face {
    font-family: 'Prompt';
    src: url('public/fonts/prompt/Prompt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Prompt';
    src: url('public/fonts/prompt/Prompt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Prompt';
    src: url('public/fonts/prompt/Prompt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Prompt';
    src: url('public/fonts/prompt/Prompt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: normal; /* Support all weights */
    font-style: normal;
    font-display: swap;
}

body, button, input, textarea, select {
    font-family: 'Prompt', sans-serif !important;
}

[lang="zh"], .font-chinese { font-family: 'LXGW WenKai Lite', 'KaiTi', 'STKaiti', 'Kaiti SC', '\6977\4f53', 'Prompt', serif !important; }
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-deep: hsl(0, 0%, 96%);
    --color-bg-panel: hsla(210, 15%, 98%, 0.85);
    --color-bg-card: hsla(0, 0%, 100%, 0.9);
    --color-border: hsla(45, 60%, 40%, 0.25);
    --color-border-active: hsla(45, 80%, 40%, 0.6);
    
    --color-primary: hsl(0, 85%, 35%);      /* Royal Chinese Crimson */
    --color-primary-light: hsl(0, 80%, 45%);
    --color-gold: hsl(45, 100%, 30%);         /* Dark Imperial Gold for contrast */
    --color-gold-hover: hsl(45, 100%, 35%);
    --color-jade: hsl(150, 60%, 30%);        /* Chinese Jade Green */
    --color-jade-dark: hsl(150, 70%, 20%);
    --color-coral: hsl(15, 90%, 50%);
    
    --color-text-primary: hsl(0, 0%, 15%);
    --color-text-secondary: hsl(0, 0%, 35%);
    --color-text-muted: hsl(0, 0%, 55%);
    
    /* Typography */
    --font-sans: 'Noto Sans Thai', 'Inter', 'LXGW WenKai Lite', 'KaiTi', 'STKaiti', 'BiauKai', 'Noto Serif TC', sans-serif;
    --font-serif: 'LXGW WenKai Lite', 'KaiTi', 'STKaiti', 'BiauKai', 'Noto Serif TC', serif;
    
    /* Effects & Transitions */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --gold-glow: 0 0 15px hsla(45, 100%, 40%, 0.25);
    --gold-glow-strong: 0 0 25px hsla(45, 100%, 40%, 0.5);
    --red-glow: 0 0 20px hsla(0, 85%, 35%, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Note: display:flex removed — header is now position:fixed, so body no longer needs
       flex layout. Flex+sticky was causing the navbar to reserve space and create a white gap. */
}

/* Ambient Animated Glows in background */
.glow-bg {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

.glow-red {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.glow-gold {
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    bottom: -15vw;
    right: -10vw;
    animation: floatGlow 24s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.app-container {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    z-index: 1;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background / backdrop / border controlled by main.php:
       transparent at top, white-blur via .scrolled class on scroll */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chinese-char {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-gold), var(--color-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid var(--color-gold);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--gold-glow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.logo-text h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

.logo-text p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-control {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.btn-control:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--gold-glow);
}

.btn-control i {
    font-size: 0.95rem;
}

.btn-danger:hover {
    border-color: var(--color-primary-light);
    color: #ff5555;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.2);
}

.status-indicator {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.btn-control:hover .status-indicator {
    background: var(--color-gold);
    color: black;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   LOBBY / MAIN HERO
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: hsla(45, 100%, 50%, 0.1);
    border: 1px solid var(--color-border-active);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(138, 21, 21, 0.1);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 100%;
    margin: 0 auto;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   BADGES ACHIEVEMENT SHOWCASE
   ========================================================================== */
.badges-showcase-panel {
    background: var(--color-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.6rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-item.unlocked {
    opacity: 1;
    filter: none;
    border-color: var(--color-border-active);
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.badge-item.unlocked::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.2), transparent 30%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

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

.badge-icon-holder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.badge-item.unlocked .badge-icon-holder {
    background: linear-gradient(135deg, #2b1f0d, #140d04);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--gold-glow);
    animation: bouncePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bouncePop {
    0% { transform: scale(0.3); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.badge-name-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    z-index: 2;
}

.badge-item.unlocked .badge-name-lbl {
    color: var(--color-gold);
    font-weight: 700;
}

.badge-item.unlocked .badge-room-num {
    background: var(--color-gold);
    color: black;
}

.badge-room-num {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-secondary);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   ROOMS GRID SECTION
   ========================================================================== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-active);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.08), var(--red-glow);
}

.room-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 2px solid var(--color-primary);
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-img {
    transform: scale(1.08);
}

.room-num {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.7);
    line-height: 1;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.room-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

.room-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.room-title {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    transition: var(--transition-quick);
}

.room-card:hover .room-title {
    color: var(--color-gold);
}

.room-desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.badge-status-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-status-text.completed {
    color: var(--color-gold);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.btn-enter {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-quick);
}

.room-card:hover .btn-enter {
    color: var(--color-gold);
    gap: 0.75rem;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   DETAIL VIEW (ROOM PAGE)
   ========================================================================== */
.room-detail-view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-detail-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.btn-back:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--gold-glow);
    transform: translateX(-3px);
}

.detail-room-indicator {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Detail Split Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

/* Left Sidebar Panel */
.detail-visual-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.room-hero-img-container {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: var(--glass-shadow);
}

.detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-overlay-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(128, 10, 10, 0.3) 100%);
}

.room-calligraphy-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.25);
    pointer-events: none;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    animation: floatCalligraphy 6s ease-in-out infinite alternate;
}

@keyframes floatCalligraphy {
    0% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
    100% { transform: translate(-50%, -46%) scale(1.05) rotate(3deg); }
}

.room-overview-card {
    background: var(--color-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.room-detail-title {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.room-detail-subtitle-zh {
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.room-detail-summary {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Badge card inside room */
.room-badge-earning-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    transition: var(--transition-smooth);
}

.room-badge-earning-status.unlocked {
    border-color: var(--color-border-active);
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.05);
}

.badge-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.room-badge-earning-status.unlocked .badge-icon-box {
    background: linear-gradient(135deg, #2b1f0d, #140d04);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    box-shadow: var(--gold-glow);
}

.badge-status-info {
    display: flex;
    flex-direction: column;
}

.badge-lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.room-badge-earning-status.unlocked .badge-name {
    color: var(--color-gold);
}

.badge-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.room-badge-earning-status.unlocked .badge-desc {
    color: var(--color-jade);
    font-weight: 500;
}

/* Right Content Workspace Panel */
.detail-workspace-panel {
    background: var(--color-bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
}

.workspace-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-secondary);
    padding: 1.2rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.tab-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.workspace-content-container {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
    flex-direction: column;
    height: 100%;
}

.tab-panel.active {
    display: flex;
}

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

/* 1. Lesson Panel Custom Styles */
.concept-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-bottom: 1.8rem;
}

.concept-card h4 {
    font-size: 1.05rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.concept-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.dos-donts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dos-box, .donts-box {
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.dos-box {
    border-top: 4px solid var(--color-jade);
}

.donts-box {
    border-top: 4px solid var(--color-primary);
}

.dos-box h5, .donts-box h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dos-box h5 { color: var(--color-jade); }
.donts-box h5 { color: var(--color-primary-light); }

.dos-box ul, .donts-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dos-box li, .donts-box li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.dos-box li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-jade);
    position: absolute;
    left: 0;
    top: 2px;
}

.donts-box li::before {
    content: '\f057'; /* FontAwesome times-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary-light);
    position: absolute;
    left: 0;
    top: 2px;
}

/* 2. Vocab Panel Custom Styles */
.vocab-helper-tip {
    background: hsla(210, 50%, 50%, 0.1);
    border: 1px dashed hsla(210, 50%, 50%, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vocab-helper-tip i {
    color: var(--color-gold);
    font-size: 1.1rem;
}

.vocab-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vocab-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.5rem;
    transition: var(--transition-quick);
}

.vocab-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.2);
}

.vocab-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.vocab-chinese {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold);
    width: 120px;
}

.vocab-pinyin-group {
    display: flex;
    flex-direction: column;
}

.vocab-pinyin {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

.vocab-meaning {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.btn-speak {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.btn-speak:hover {
    background: var(--color-gold);
    color: black;
    border-color: var(--color-gold);
    box-shadow: var(--gold-glow);
    transform: scale(1.08);
}

.btn-speak:active {
    transform: scale(0.95);
}

/* 3. Quiz Panel Custom Styles */
.quiz-welcome {
    text-align: center;
    padding: 2rem 1rem;
}

.quiz-welcome-icon {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-shadow: var(--gold-glow);
}

.quiz-welcome h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.quiz-welcome p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.btn-quiz-start {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-quick);
    box-shadow: var(--red-glow);
}

.btn-quiz-start:hover {
    box-shadow: var(--gold-glow-strong);
    transform: translateY(-2px);
    border-color: var(--color-gold);
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-primary), var(--color-gold));
    transition: width 0.3s ease;
}

.quiz-question-number {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.quiz-question-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
}

.quiz-option-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-option-btn.selected {
    background: rgba(255, 215, 0, 0.05);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.quiz-option-btn.selected .quiz-option-indicator {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Quiz Feedback states */
.quiz-option-btn.correct {
    background: rgba(63, 112, 77, 0.2);
    border-color: var(--color-jade);
    color: white;
}

.quiz-option-btn.correct .quiz-option-indicator {
    background: var(--color-jade);
    border-color: var(--color-jade);
    color: white;
}

.quiz-option-btn.wrong {
    background: rgba(128, 10, 10, 0.25);
    border-color: var(--color-primary);
    color: var(--color-text-secondary);
}

.quiz-option-btn.wrong .quiz-option-indicator {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Quiz Complete Panel */
.quiz-success-view {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.quiz-success-icon-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.success-badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0.6;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

.success-badge-icon {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a2a12, #181105);
    border: 3px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--color-gold);
    box-shadow: var(--gold-glow-strong);
    z-index: 2;
}

.quiz-success-view h4 {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.quiz-success-view p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.8rem;
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-alert {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    padding: 1.2rem 1.8rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

.toast-alert.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--color-gold);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(5, 5, 7, 0.95);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .detail-layout {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-visual-panel {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .room-hero-img-container {
        width: 250px;
        height: 180px;
        flex-shrink: 0;
    }
    
    .room-overview-card {
        flex: 1;
    }
    
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .header-logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .dos-donts-grid {
        grid-template-columns: 1fr;
    }
    
    .vocab-info {
        gap: 1rem;
    }
    
    .vocab-chinese {
        font-size: 1.3rem;
        width: 80px;
    }
}

@media (max-width: 480px) {
    .detail-visual-panel {
        flex-direction: column;
    }
    
    .room-hero-img-container {
        width: 100%;
        height: 200px;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .workspace-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   INTERACTIVE AUDIO HUB COMPONENT
   ========================================================================== */
.audio-hub-container {
    background: #1e1a15;
    border: 1px solid #d4af37;
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    margin: 0 0 2rem 0;
    box-shadow: var(--glass-shadow), 0 0 20px rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-hub-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.audio-hub-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.audio-hub-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #d4af37;
    flex-shrink: 0;
}

.audio-hub-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.audio-hub-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    font-weight: 700;
}

.audio-hub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.audio-hub-pinyin {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.audio-hub-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.audio-hub-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 2px;
}

.btn-selector {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: calc(var(--border-radius-sm) - 2px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-quick);
}

.btn-selector:hover {
    color: var(--color-text-secondary);
}

.btn-selector.active {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.2);
}

.audio-hub-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-audio-primary {
    background: #d4af37;
    border: none;
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    transition: var(--transition-quick);
}

.btn-audio-primary:hover {
    background: #e5c158;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.btn-audio-primary:active {
    transform: translateY(1px);
}

.btn-audio-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.btn-audio-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
}

.btn-audio-secondary.listening {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff5555;
    color: #ff5555;
    animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
    0% { box-shadow: 0 0 0 0 rgba(255, 85, 85, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 85, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 85, 85, 0); }
}

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

.audio-hub-translation {
    font-size: 0.8rem;
    color: var(--color-gold);
    opacity: 0.85;
    line-height: 1.45;
    margin-top: 0.5rem;
    font-style: italic;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    padding-top: 0.5rem;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .audio-hub-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .audio-hub-controls {
        align-items: stretch;
    }
    
    .audio-hub-selector {
        justify-content: center;
    }
    
    .audio-hub-actions {
        justify-content: center;
    }
    
    .btn-audio-primary, .btn-audio-secondary {
        flex: 1;
        justify-content: center;
    }
}

@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KaiTi';
    src: url('public/fonts/kaiti/KaiTi.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   AUDIO HUB — VIDEO PLAYER PANEL
   ========================================================================== */
.audio-hub-video-panel {
    margin: 0 1.25rem 1.25rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-active);
    box-shadow: 0 0 24px hsla(0, 85%, 27%, 0.25), var(--glass-shadow);
    background: hsla(0, 0%, 4%, 0.7);
    animation: videoFadeIn 0.5s ease forwards;
    position: relative;
}

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

.audio-hub-video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #000;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    /* Style the native browser video controls to blend with dark theme */
    accent-color: var(--color-gold);
}

/* Label bar under the video */
.audio-hub-video-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: hsla(45, 80%, 20%, 0.25);
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 0.02em;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.audio-hub-video-label i {
    font-size: 0.85rem;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Responsive: compact height on small screens */
@media (max-width: 768px) {
    .audio-hub-video-panel {
        margin: 0 0.75rem 1rem;
    }
    .audio-hub-video {
        max-height: 220px;
    }
}

/* Principles List Styles */
.principles-container {
    margin-top: 1rem;
}
.principles-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    padding-left: 10px;
    border-left: 4px solid var(--color-gold);
    display: flex;
    align-items: center;
}
.principle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.principle-item {
    display: flex;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    gap: 1.2rem;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.principle-number {
    background-color: #fff3cd;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.principle-content h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}
.principle-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}
.highlight-text {
    color: #dc3545;
    background-color: #ffeef0;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}


button, input, textarea, select {
    font-family: inherit;
}
