/*
Theme Name: Lily Official Theme v20
Theme URI: https://lily-official.com/
Author: StarVox Assistant
Author URI: https://lily-official.com/
Description: A minimalist, content-first, Japanese editorial style custom theme for the Lily Virtual Idol Platform. Features Anime.js integration, StarVox H5 game, and silent mining gamification engine.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lily-official20
*/

/* 极致纯净日系杂志风 (Editorial Web Design) */
:root {
  --bg-dark: #0f0f11;
  --bg-light: #ffffff;
  --text-dark: #111111;
  --text-light: #f5f5f5;
  --accent: #d94f4f; /* 沉稳的日系朱红 */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-title: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-dark); color: var(--text-light); overflow-x: hidden; }

/* 导航栏 - 透明极简 */
.navbar {
  position: fixed; width: 100%; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 6%;
  transition: all 0.5s ease;
}
.navbar.scrolled {
  padding: 20px 6%; background: rgba(15, 15, 17, 0.85); backdrop-filter: blur(10px);
}
.logo { font-family: var(--font-title); font-size: 20px; font-weight: 600; letter-spacing: 4px; color: #fff; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 11px; letter-spacing: 2px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.games-link { border: 1px solid rgba(255,255,255,0.3); padding: 5px 12px; border-radius: 20px; }

/* 语言切换器 */
.lang-switcher { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1px; }
.lang-opt { cursor: pointer; transition: color 0.3s; }
.lang-sep { color: rgba(255,255,255,0.2); }

/* i18n 多语言显示控制 (通过 body class 实现无刷新极速切换) */
/* 默认状态：中文显示，日文/英文隐藏 */
.lang-ja:not(body):not(html) { display: none !important; }
.lang-en:not(body):not(html) { display: none !important; }
.lang-zh:not(body):not(html) { display: inline !important; }

/* 日语模式 (lang-ja) */
body.lang-ja .lang-ja:not(body):not(html), html.lang-ja .lang-ja:not(body):not(html) { display: inline !important; }
body.lang-ja .lang-zh:not(body):not(html), html.lang-ja .lang-zh:not(body):not(html) { display: none !important; }
body.lang-ja .lang-en:not(body):not(html), html.lang-ja .lang-en:not(body):not(html) { display: none !important; }

/* 英语模式 (lang-en) */
body.lang-en .lang-en:not(body):not(html), html.lang-en .lang-en:not(body):not(html) { display: inline !important; }
body.lang-en .lang-zh:not(body):not(html), html.lang-en .lang-zh:not(body):not(html) { display: none !important; }
body.lang-en .lang-ja:not(body):not(html), html.lang-en .lang-ja:not(body):not(html) { display: none !important; }

/* 中文模式 (lang-zh) */
body.lang-zh .lang-zh:not(body):not(html), html.lang-zh .lang-zh:not(body):not(html) { display: inline !important; }
body.lang-zh .lang-ja:not(body):not(html), html.lang-zh .lang-ja:not(body):not(html) { display: none !important; }
body.lang-zh .lang-en:not(body):not(html), html.lang-zh .lang-en:not(body):not(html) { display: none !important; }

/* 用户头像 */
.profile-btn { cursor: pointer; position: relative; }
.avatar-ring {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  display: flex; justify-content: center; align-items: center; transition: all 0.3s;
  background: rgba(255,255,255,0.05);
}
.avatar-ring:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: scale(1.05); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #444; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 18px; }
.user-avatar img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
/* Guest 图标占位 */
.user-avatar::before { content: '👤'; font-size: 18px; line-height: 1; }

/* 用户侧边抽屉 (隐藏积分面板) */
.drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.profile-drawer {
  position: fixed; top: 0; right: -400px; width: 400px; height: 100%;
  background: #18181a; z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex; flex-direction: column;
}
.drawer-active .drawer-overlay { opacity: 1; pointer-events: all; }
.drawer-active .profile-drawer { right: 0; }

.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 40px 30px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.drawer-header h3 { font-family: var(--font-title); font-size: 20px; letter-spacing: 1px; font-weight: 400; }
.close-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

.drawer-content { padding: 30px; }
.wallet-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 40px; }
.wallet-title { font-size: 12px; color: #888; margin-bottom: 10px; letter-spacing: 1px; }
.wallet-balance { font-size: 36px; font-weight: 300; font-family: var(--font-title); margin-bottom: 10px; color: #fff; }
.wallet-balance .icon { font-size: 20px; color: var(--accent); }
.wallet-desc { font-size: 11px; color: #555; }

/* 30天持续滴水挖矿面板 */
.drip-mining-section { margin-top: 20px; }
.section-title { font-size: 12px; color: #888; margin-bottom: 15px; letter-spacing: 1px; font-weight: 400; text-transform: uppercase; }
.drip-card { background: rgba(255,255,255,0.02); padding: 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.drip-header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 15px; font-weight: 500; }
.drip-status { font-size: 11px; background: rgba(217, 79, 79, 0.2); color: var(--accent); padding: 3px 8px; border-radius: 10px; }
.drip-numbers { font-family: var(--font-title); font-size: 24px; font-weight: 300; margin-bottom: 15px; }
.drip-total { font-size: 16px; color: #666; }
.drip-progress-bg { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin-bottom: 15px; }
.drip-progress-bar { height: 100%; background: var(--accent); border-radius: 2px; }
.drip-footer { display: flex; justify-content: space-between; font-size: 11px; color: #666; }


/* 首屏全尺寸大视野 */
.hero-section { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center 20%; z-index: 1; transform: scale(1.05); /* 预留给视差 */ }
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-video-bg.active {
  opacity: 1;
}
.hero-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  z-index: 0;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(15,15,17,0.3) 0%, rgba(15,15,17,0.8) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; padding-top: 100px; }
.hero-subtitle { font-size: 11px; letter-spacing: 5px; color: #aaa; margin-bottom: 20px; }
.hero-title { font-family: var(--font-title); font-size: 6vw; line-height: 1.1; font-weight: 400; letter-spacing: -1px; margin-bottom: 40px; }

/* 影院级首屏组件 (Netflix Hero) */
.hero-play-btn { display: inline-flex; align-items: center; gap: 15px; background: #fff; color: #000; padding: 15px 40px 15px 20px; border-radius: 40px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; margin-bottom: 60px; }
.hero-play-btn:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(255,255,255,0.2); }
.hero-play-btn.video-card { border: none; } /* Override video-card defaults for this specific button */
.hero-play-icon { width: 40px; height: 40px; background: #000; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; padding-left: 3px; font-size: 14px; }
.hero-play-btn span { font-size: 16px; font-weight: 600; letter-spacing: 1px; }

.hero-quick-links { display: inline-flex; align-items: center; gap: 20px; background: rgba(15, 15, 17, 0.4); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); padding: 15px 30px; border-radius: 30px; }
.hero-quick-links .quick-link { color: #fff; text-decoration: none; font-size: 13px; font-weight: 400; letter-spacing: 1px; transition: color 0.3s; }
.hero-quick-links .quick-link:hover { color: var(--accent); }
.hero-quick-links .divider { width: 1px; height: 15px; background: rgba(255,255,255,0.2); }

@keyframes dropDown { 0% { top: -50%; } 100% { top: 150%; } }

/* 通用容器 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 6%; }
.section-dark { padding: 120px 0; background: var(--bg-dark); }
.section-light { padding: 120px 0; background: var(--bg-light); color: var(--text-dark); border-radius: 40px 40px 0 0; position: relative; z-index: 10; margin-top: -40px; }
.section-title-large { font-family: var(--font-title); font-size: 48px; font-weight: 300; margin-bottom: 20px; }
.section-desc { font-size: 14px; line-height: 1.8; color: #888; max-width: 500px; }
.section-header-left { margin-bottom: 60px; }
.section-header-center { margin-bottom: 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Lily 视频枢纽 (Video Hub) */
.video-hub-section { padding: 120px 0; background: var(--bg-dark); }
.video-hub-container { display: flex; gap: 40px; align-items: flex-start; }
.video-main-area { flex: 1; }

/* Tabs */
.video-tabs { list-style: none; display: flex; gap: 30px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.video-tabs li { color: #888; font-size: 14px; font-weight: 500; cursor: pointer; position: relative; transition: color 0.3s; }
.video-tabs li:hover { color: #ddd; }
.video-tabs li.active { color: #fff; }
.video-tabs li.active::after { content: ''; position: absolute; left: 0; bottom: -16px; width: 100%; height: 2px; background: var(--accent); }

/* Video Grid & Cards */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; min-height: 400px; }
.video-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.4s, border-color 0.4s; }
.video-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.15); }
.video-thumbnail { width: 100%; aspect-ratio: 16/9; background-color: #000; position: relative; overflow: hidden; }
.video-thumbnail::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(12px) brightness(0.5); transform: scale(1.15); }
.video-thumbnail::after { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: contain; background-repeat: no-repeat; background-position: center; }
.play-overlay { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.3); transition: background 0.3s; }
.video-card:hover .play-overlay { background: rgba(0,0,0,0.1); }
.play-btn-glow { position: absolute; width: 60px; height: 60px; background: var(--accent); border-radius: 50%; filter: blur(20px); opacity: 0; transition: opacity 0.4s; }
.video-card:hover .play-btn-glow { opacity: 0.6; }
.play-icon { position: relative; width: 60px; height: 60px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; color: #fff; padding-left: 4px; transition: transform 0.3s, background 0.3s; }
.video-card:hover .play-icon { transform: scale(1.1); background: #fff; color: #000; }
.video-meta-box { padding: 20px; }
.video-title { font-size: 15px; font-weight: 500; margin-bottom: 15px; line-height: 1.4; color: #eee; }
.video-stats { display: flex; gap: 15px; font-size: 12px; color: #666; }

/* Shorts Area */
.video-shorts-area { 
    width: 300px; 
    padding: 30px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 20px; 
    backdrop-filter: blur(20px); 
    transition: box-shadow 0.4s, border-color 0.4s;
}
.video-shorts-area:hover {
    box-shadow: 0 20px 40px rgba(255, 117, 140, 0.15);
    border-color: rgba(255, 117, 140, 0.2);
}
.shorts-title { font-family: var(--font-title); font-size: 18px; margin-bottom: 25px; color: #fff; letter-spacing: 1px; }
.short-card { 
    width: 100%; 
    cursor: pointer; 
    border-radius: 12px; 
    overflow: hidden; 
    position: relative; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.short-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 117, 140, 0.3);
    box-shadow: 0 10px 25px rgba(255, 117, 140, 0.2);
}
.short-thumbnail { width: 100%; aspect-ratio: 9/16; background-color: #000; position: relative; overflow: hidden; transition: transform 0.5s; }
.short-thumbnail::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(12px) brightness(0.5); transform: scale(1.15); }
.short-thumbnail::after { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: contain; background-repeat: no-repeat; background-position: center; }
.short-card:hover .short-thumbnail { transform: scale(1.03); }
.short-meta { position: absolute; bottom: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2; }
.short-meta h4 { font-size: 14px; color: #fff; font-weight: 400; line-height: 1.5; }
.short-placeholder { aspect-ratio: 9/16; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #666; font-size: 12px; }

/* Video Modal */
.video-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; backdrop-filter: blur(20px); }
.video-modal.active { opacity: 1; pointer-events: auto; }
.video-modal-close { position: absolute; top: 40px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; transition: transform 0.3s; z-index: 2001; }
.video-modal-close:hover { transform: scale(1.2) rotate(90deg); }
.video-modal-content { width: 90%; max-width: 1200px; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.video-modal-content iframe { width: 100%; height: 100%; border: none; }


/* 瀑布流图文区 */
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-item { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,0.03); transition: transform 0.4s; }
.grid-item:hover { transform: translateY(-10px); }
.item-large { grid-column: span 2; grid-row: span 2; }
.item-img { width: 100%; padding-top: 100%; background-color: #f4f4f4; position: relative; overflow: hidden; }
.item-img::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; filter: blur(12px) brightness(0.95); transform: scale(1.15); }
.item-img::after { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: contain; background-repeat: no-repeat; background-position: center; }
.item-large .item-img { padding-top: 60%; }
.item-text { padding: 30px; }
.item-text h4 { font-size: 18px; margin-bottom: 10px; font-weight: 600; color: #111; }
.item-text p { font-size: 14px; color: #666; line-height: 1.6; }
.text-post { padding: 40px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.x-icon { font-size: 24px; margin-bottom: 20px; color: #111; }

/* 悬浮跳转 Banner (固定在右下角或底部) */
.game-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 24, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 24px;
    border-radius: 24px;
    z-index: 990;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 480px;
    width: calc(100% - 60px);
}
.game-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.banner-thumb-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.banner-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.banner-thumb-wrapper:hover .banner-thumb-img {
    transform: scale(1.18);
}
.banner-thumb-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ff5e7e;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(255, 94, 126, 0.4);
    z-index: 2;
}
.banner-thumb-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
    z-index: 1;
}
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.banner-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
    animation: scanline 2.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.banner-text {
    flex: 1;
    cursor: pointer;
}
.banner-text h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: #ffb7c5; /* Blossom Pink */
}
.banner-text p {
    font-size: 11px;
    color: #b0b0b8;
    line-height: 1.5;
}
@keyframes rainbow-glow {
    0% { border-color: #ffb7c5; box-shadow: 0 4px 15px rgba(255, 183, 197, 0.4); }
    33% { border-color: #ffd3b6; box-shadow: 0 4px 15px rgba(255, 211, 182, 0.4); }
    66% { border-color: #7BC8A4; box-shadow: 0 4px 15px rgba(123, 200, 164, 0.4); }
    100% { border-color: #ffb7c5; box-shadow: 0 4px 15px rgba(255, 183, 197, 0.4); }
}
.banner-btn {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
    animation: rainbow-glow 3s linear infinite;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}
.banner-btn:hover {
    transform: scale(1.08);
}

/* Animal Island UI Design System Variables & Overrides */
:root {
    --ai-green: #7BC8A4;
    --ai-pink: #FFB7C5;
    --ai-yellow: #FFF5D7;
    --ai-blue: #A8D8EA;
    --ai-orange: #FFB37E;
    --ai-brown: #5D4037;
}

/* 1. Hero Play Button Overhaul (Cute pastel jelly button) */
.hero-play-btn {
    background: #ffd3b6 !important;
    color: #5D4037 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 6px 0 #e69d72, 0 12px 20px rgba(230, 157, 114, 0.3) !important;
    border-radius: 35px !important;
    font-weight: 700 !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.hero-play-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 9px 0 #e69d72, 0 16px 25px rgba(230, 157, 114, 0.4) !important;
}
.hero-play-btn:active {
    transform: translateY(3px) scale(0.97) !important;
    box-shadow: 0 2px 0 #e69d72, 0 6px 10px rgba(230, 157, 114, 0.4) !important;
}
.hero-play-icon {
    background: #5D4037 !important;
    color: #ffd3b6 !important;
}

/* 2. Games Nav Link Override (Cute green badge style) */
.games-link {
    background: #7BC8A4 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    padding: 6px 16px !important;
    border-radius: 24px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 0 #5aa682, 0 6px 12px rgba(123, 200, 164, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block;
}
.games-link:hover {
    transform: translateY(-2px) scale(1.06) !important;
    box-shadow: 0 6px 0 #5aa682, 0 10px 18px rgba(123, 200, 164, 0.4) !important;
    color: #fff !important;
}
.games-link:active {
    transform: translateY(2px) scale(0.95) !important;
    box-shadow: 0 1px 0 #5aa682, 0 4px 6px rgba(123, 200, 164, 0.4) !important;
}

/* 3. Regular Navigation Links Underlines */
.nav-links a:not(.games-link) {
    position: relative;
    transition: color 0.3s;
}
.nav-links a:not(.games-link)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #FFB7C5;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:not(.games-link):hover::after,
.nav-links a:not(.games-link).active::after {
    width: 100%;
    left: 0;
}

/* 4. Video and Shorts Cards (Smooth floating cards with warm shadows) */
.video-card, .short-card {
    border-radius: 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s !important;
}
.video-card:hover, .short-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: #FFB7C5 !important;
    box-shadow: 0 16px 32px rgba(255, 183, 197, 0.25) !important;
}

/* 5. Video Tabs (Pastel colored pills) */
.video-tabs li {
    padding: 10px 22px !important;
    border-radius: 16px !important;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.video-tabs li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.video-tabs li.active {
    background: #7BC8A4 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(123, 200, 164, 0.3) !important;
}
.video-tabs li.active::after {
    display: none !important; /* Hide original linear underline */
}
.tab-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 10px;
    height: 10px;
    z-index: 1;
}

/* 6. Mailbox FAB Button Overhaul */
.treehole-btn {
    border-radius: 50% !important;
    border: 3px solid #fff !important;
    box-shadow: 0 6px 0 #b33951, 0 12px 25px rgba(255, 117, 140, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.treehole-btn:hover {
    transform: translateY(-5px) scale(1.08) rotate(-10deg) !important;
    box-shadow: 0 11px 0 #b33951, 0 18px 30px rgba(255, 117, 140, 0.5) !important;
}
.treehole-btn:active {
    transform: translateY(3px) scale(0.95) !important;
    box-shadow: 0 2px 0 #b33951, 0 6px 12px rgba(255, 117, 140, 0.5) !important;
}

/* 7. Treehole Letter Submit Button Overhaul */
.treehole-submit-btn {
    background: #ff758c !important;
    border: 2px solid #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 0 #c24d62, 0 10px 20px rgba(255, 117, 140, 0.3) !important;
    font-weight: bold !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.treehole-submit-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 9px 0 #c24d62, 0 15px 25px rgba(255, 117, 140, 0.4) !important;
}
.treehole-submit-btn:active {
    transform: translateY(3px) scale(0.97) !important;
    box-shadow: 0 2px 0 #c24d62, 0 5px 10px rgba(255, 117, 140, 0.4) !important;
}

/* Click Canvas */
#click-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* Floating Mailbox Button */
.treehole-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 117, 140, 0.4);
    z-index: 999;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.treehole-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 15px 30px rgba(255, 117, 140, 0.6);
}
.treehole-btn-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Treehole Modal (Glassmorphism) */
.treehole-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2010;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.treehole-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.treehole-modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.treehole-modal.active .treehole-modal-content {
    transform: translateY(0);
}
.treehole-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}
.treehole-close:hover {
    color: #fff;
}
.treehole-header {
    text-align: center;
    margin-bottom: 25px;
}
.treehole-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-title);
}
.treehole-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.treehole-form-group {
    margin-bottom: 20px;
}
.treehole-form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}
.treehole-input, .treehole-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    box-sizing: border-box;
}
.treehole-input:focus, .treehole-textarea:focus {
    border-color: #ff758c;
    background: rgba(255, 255, 255, 0.08);
}
.treehole-textarea {
    height: 120px;
    resize: none;
}
.treehole-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 117, 140, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.treehole-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 117, 140, 0.5);
}
.treehole-status {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    min-height: 20px;
}
.treehole-status.success { color: #4caf50; }
.treehole-status.error { color: #f44336; }

/* Profile Drawer Google Login */
.google-login-container {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.google-login-title {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}
#google-signin-btn {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
}

/* Night Owl Greeting Banner */
.night-owl-banner {
    background: linear-gradient(135deg, rgba(80, 20, 120, 0.4) 0%, rgba(20, 10, 40, 0.6) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: none;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.night-owl-banner::before {
    content: "🌙";
    font-size: 24px;
}
.night-owl-text h4 {
    font-size: 14px;
    color: #e0b0ff;
    margin-bottom: 4px;
    font-weight: 600;
}
.night-owl-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

/* ============================================
   树洞按钮增强动画
   ============================================ */
.treehole-btn {
    overflow: visible !important;
}
.treehole-btn-icon {
    font-size: 26px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.treehole-btn:hover .treehole-btn-icon {
    transform: rotate(-15deg) scale(1.15);
}

/* 扩散脉冲光环 */
.treehole-pulse-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 117, 140, 0.6);
    animation: treehole-ring 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes treehole-ring {
    0%   { transform: scale(1);   opacity: 0.8; }
    80%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* 飞入信封粒子 */
.treehole-envelope-fly {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
    animation: envelope-fly 3s ease-in-out infinite;
    opacity: 0;
    bottom: 16px;
    left: 16px;
}
@keyframes envelope-fly {
    0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
    20%  { opacity: 1; }
    60%  { opacity: 0.8; transform: translate(-18px, -30px) scale(1); }
    100% { opacity: 0; transform: translate(-5px, -50px) scale(0.3); }
}

/* 浮动提示气泡 */
.treehole-hint {
    position: absolute;
    left: 74px;
    bottom: 14px;
    background: rgba(255,117,140,0.92);
    color: #fff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255,117,140,0.4);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}
.treehole-hint::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(255,117,140,0.92);
    border-left: none;
}
.treehole-btn:hover .treehole-hint {
    opacity: 1;
    transform: translateX(0);
}

/* 树洞模态框头部图标 */
.treehole-header-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: gentle-float 3s ease-in-out infinite;
}
@keyframes gentle-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50%       { transform: translateY(-8px) rotate(5deg); }
}

/* 树洞介绍文字 */
.treehole-intro {
    background: rgba(255,117,140,0.07);
    border: 1px solid rgba(255,117,140,0.2);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 12px;
    text-align: left;
}
.treehole-intro p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 4px;
}
.treehole-intro p:last-child { margin-bottom: 0; }
.treehole-intro strong { color: #ff9eb5; }

/* 树洞登录引导 */
.treehole-login-gate {
    text-align: center;
    padding: 20px 0 10px;
}
.treehole-lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: gentle-float 3s ease-in-out infinite;
}
.treehole-login-tip {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}
#treehole-google-btn {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* ============================================
   用户资料编辑卡 (Profile Editor Card)
   ============================================ */
.profile-edit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar-inner {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
}

.profile-avatar-inner img.avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.avatar-upload-trigger {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 5;
}

.profile-avatar-inner:hover .avatar-upload-trigger {
    opacity: 1;
}

.camera-icon {
    font-size: 20px;
    color: #fff;
}

.profile-edit-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-edit-fields .input-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-edit-fields .input-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.profile-edit-fields input[type="text"],
.profile-edit-fields textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    font-family: inherit;
}

.profile-edit-fields input[type="text"]:focus,
.profile-edit-fields textarea:focus {
    border-color: #ff758c;
    background: rgba(255, 255, 255, 0.08);
}

.save-profile-btn {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 117, 140, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 5px;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 117, 140, 0.5);
}

.save-profile-btn:active {
    transform: translateY(1px);
}

.profile-save-status {
    font-size: 11px;
    text-align: center;
    min-height: 15px;
    margin-top: 5px;
}
.profile-save-status.success { color: #4caf50; }
.profile-save-status.error { color: #f44336; }

/* ============================================
   每日任务栏样式 (Daily Tasks Section)
   ============================================ */
.tasks-section {
    margin-top: 30px;
}

.task-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.task-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.task-reward {
    font-size: 12px;
    background: rgba(123, 200, 164, 0.15);
    color: #7BC8A4;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.task-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    margin-bottom: 15px;
}

.task-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.task-progress-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.task-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #7BC8A4 0%, #a8e6cf 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-progress-val {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    font-family: var(--font-title);
    min-width: 30px;
    text-align: right;
}

.task-status-footer {
    display: flex;
    justify-content: flex-end;
}

.task-badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.task-card.completed .task-badge {
    background: rgba(123, 200, 164, 0.2) !important;
    color: #7BC8A4 !important;
}

.task-card.completed .task-progress-bar-inner {
    background: #7BC8A4 !important;
}

/* ============================================
   全局悬浮 Toast 消息 (Premium Float Toast)
   ============================================ */
.lily-toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.lily-toast .toast-icon {
    color: #ff758c;
    font-size: 16px;
    animation: gentle-float 1.5s ease-in-out infinite;
}

/* ============================================
   Blog Deck Carousel Styles
   ============================================ */
.blog-carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0 60px;
    overflow: visible;
}
.blog-carousel-container {
    position: relative;
    width: 100%;
    height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
}
.blog-carousel-loading {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 100px 0;
}

/* Card Styling */
.blog-card {
    position: absolute;
    width: 360px;
    height: 480px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #111111;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}
.blog-card:hover {
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}
.blog-card-img-wrap {
    width: 100%;
    height: 60%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.blog-card-date {
    font-size: 11px;
    color: #999;
}
.blog-card-interactions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.blog-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 117, 140, 0.1);
    color: #ff758c;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.blog-like-btn:hover {
    background: rgba(255, 117, 140, 0.2);
    transform: scale(1.05);
}
.blog-like-btn:active {
    transform: scale(0.95);
}
.blog-like-btn.liked {
    background: #ff758c;
    color: #fff;
}
.blog-card-views {
    font-size: 11px;
    color: #999;
}

/* Deck Positions */
.blog-card.active {
    z-index: 5;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: none;
    pointer-events: auto;
}
.blog-card.prev {
    z-index: 3;
    transform: translate3d(-340px, 0, -100px) scale(0.85);
    opacity: 0.6;
    filter: blur(4px);
    pointer-events: auto;
}
.blog-card.next {
    z-index: 3;
    transform: translate3d(340px, 0, -100px) scale(0.85);
    opacity: 0.6;
    filter: blur(4px);
    pointer-events: auto;
}
.blog-card.far-prev {
    z-index: 2;
    transform: translate3d(-560px, 0, -200px) scale(0.7);
    opacity: 0.2;
    filter: blur(8px);
    pointer-events: none;
}
.blog-card.far-next {
    z-index: 2;
    transform: translate3d(560px, 0, -200px) scale(0.7);
    opacity: 0.2;
    filter: blur(8px);
    pointer-events: none;
}
.blog-card.hidden {
    z-index: 1;
    transform: translate3d(0, 0, -300px) scale(0.5);
    opacity: 0;
    filter: blur(12px);
    pointer-events: none;
}

/* Controls */
.blog-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.carousel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.carousel-btn:hover {
    background: #d94f4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 79, 79, 0.3);
}
.carousel-btn:active {
    transform: translateY(1px);
}
.carousel-btn .btn-icon {
    font-size: 14px;
}
.carousel-slider-wrapper {
    flex-grow: 1;
    margin: 0 30px;
    height: 4px;
    background: #eaeaea;
    border-radius: 2px;
    position: relative;
    overflow: visible;
}
.carousel-slider-bar {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 2px solid #111111;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.2s;
}
.carousel-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: #d94f4f;
    border-color: #d94f4f;
}

/* ============================================
   Mobile Responsiveness (Media Queries)
   ============================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }
    .video-hub-container {
        flex-direction: column;
        gap: 40px;
    }
    .video-shorts-area {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .blog-card.prev {
        transform: translate3d(-240px, 0, -80px) scale(0.85);
    }
    .blog-card.next {
        transform: translate3d(240px, 0, -80px) scale(0.85);
    }
    .blog-card.far-prev, .blog-card.far-next {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile Adaptations */
    .navbar {
        padding: 20px 4%;
    }
    .navbar.scrolled {
        padding: 15px 4%;
    }
    .logo {
        font-size: 16px;
        letter-spacing: 2px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    /* Netflix Hero */
    .hero-title {
        font-size: 8vw;
        margin-bottom: 30px;
    }
    .hero-play-btn {
        padding: 12px 30px 12px 15px;
        margin-bottom: 40px;
    }
    .hero-play-btn span {
        font-size: 14px;
    }
    .hero-quick-links {
        padding: 10px 20px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-quick-links .quick-link {
        font-size: 11px;
    }
    .hero-quick-links .divider {
        display: none;
    }

    /* Video Hub Grid */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .video-tabs {
        gap: 15px;
        flex-wrap: wrap;
    }
    .video-tabs li {
        font-size: 12px;
    }
    
    /* Blog Deck Carousel */
    .blog-carousel-container {
        height: 460px;
    }
    .blog-card {
        width: 290px;
        height: 400px;
        border-radius: 16px;
    }
    .blog-card-content {
        padding: 16px;
    }
    .blog-card-title {
        font-size: 15px;
    }
    .blog-card-excerpt {
        font-size: 12px;
    }
    .blog-card.prev {
        transform: translate3d(-180px, 0, -60px) scale(0.85);
        filter: blur(2px);
    }
    .blog-card.next {
        transform: translate3d(180px, 0, -60px) scale(0.85);
        filter: blur(2px);
    }
    
    .blog-carousel-controls {
        margin-top: 20px;
        gap: 10px;
    }
    .carousel-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
    .carousel-slider-wrapper {
        margin: 0 10px;
    }

    /* Section Spacing */
    .section-dark, .section-light {
        padding: 60px 0;
    }
    .section-title-large {
        font-size: 32px;
    }
    
    /* Drawer width */
    .profile-drawer {
        width: 100%;
        right: -100%;
    }
    
    /* Treehole Button & Game Banner */
    .game-banner {
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
        padding: 12px 16px;
        border-radius: 16px;
    }
    .banner-content {
        gap: 12px;
    }
    .banner-thumb-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    .banner-text h4 {
        font-size: 12px;
    }
    .banner-text p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 4%;
    }
    .navbar.scrolled {
        padding: 10px 4%;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    .lang-switcher {
        position: absolute;
        top: 15px;
        right: 4%;
    }
    .profile-btn {
        position: absolute;
        top: 10px;
        left: 4%;
    }
    .hero-content {
        padding-top: 120px;
    }
    .hero-title {
        font-size: 10vw;
    }
    
    /* Blog Deck Carousel on extremely small screens */
    .blog-card.prev {
        transform: translate3d(-100px, 0, -60px) scale(0.75);
        opacity: 0.3;
        filter: blur(4px);
    }
    .blog-card.next {
        transform: translate3d(100px, 0, -60px) scale(0.75);
        opacity: 0.3;
        filter: blur(4px);
    }
}

