@charset "UTF-8";
/*
 * Deep Sea Archives - PPP User Style
 * Synced from skin-deepsea/skin.css
 */

/* ========================================
   Base Styles
   ======================================== */
body {
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", serif;
    /* 背景はJavaScriptで時間帯別に設宁E*/
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.8;
}

a {
    color: #ffffff;
    text-decoration: underline;
    transition: 0.3s;
}

a:hover {
    color: #ffffff;
}

/* ========================================
   Ocean Background & Bubbles
   ======================================== */
.ocean {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll from bubbles */
    overflow-y: auto;   /* Allow vertical scroll for content */
    padding: 20px;
}

/* --- 泡アニメーション (オリジナル) --- */
.bubble {
    position: fixed;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: rise 10s infinite ease-in;
    z-index: 0;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translateX(30px);
    }

    100% {
        bottom: 120vh;
        transform: translateX(-30px);
        opacity: 0;
    }
}

.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-duration: 8s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 35%; width: 25px; height: 25px; animation-duration: 10s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 50%; width: 30px; height: 30px; animation-duration: 15s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 65%; width: 25px; height: 25px; animation-duration: 11s; animation-delay: 6s; }
.bubble:nth-child(6) { left: 80%; width: 30px; height: 30px; animation-duration: 18s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 90%; width: 35px; height: 35px; animation-duration: 14s; animation-delay: 7s; }
.bubble:nth-child(8) { left: 25%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: 2s; opacity: 0.5; }
.bubble:nth-child(9) { left: 70%; width: 15px; height: 15px; animation-duration: 13s; animation-delay: 5s; opacity: 0.5; }

/* ========================================
   Glass Panel (Glassmorphism)
   ======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    width: 90%;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 10;
}

.category-only .glass-panel,
.tegalog-wrapper .glass-panel {
    max-width: 800px;
}

.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Navigation
   ======================================== */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 50, 80, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: rgba(0, 80, 120, 0.9);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 50, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    z-index: 999;
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-list { list-style: none; text-align: center; }
.nav-list li { margin: 20px 0; }
.nav-list li a {
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.3em;
    transition: 0.3s;
}
.nav-list li a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   Home Header
   ======================================== */
.home-header { text-align: center; margin-bottom: 40px; }
.site-concept { font-size: 0.8rem; letter-spacing: 0.5em; color: #ffffff; margin-bottom: 10px; }
.main-title { font-size: 1.5rem; font-weight: 400; letter-spacing: 0.2em; color: #ffffff; text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); margin-bottom: 15px; }
.author-name { font-size: 0.85rem; color: #ffffff; letter-spacing: 0.1em; }
.latest-info { margin-top: 30px; padding-top: 20px; border-top: 1px dotted #ffffff; }
.info-label { 
    display: inline-block;
    font-size: 0.75rem; 
    color: #ffffff; 
    letter-spacing: 0.2em; 
    margin-bottom: 10px;
    padding: 3px 12px;
    border: 1px solid #ffffff;
    border-radius: 15px;
}

/* ========================================
   About Section
   ======================================== */
.about-section { margin-bottom: 30px; }
.about-content { line-height: 1.9; font-size: 0.95rem; color: #ffffff; }
.about-content h3, .about-heading { color: #ffffff; font-size: 1rem; font-weight: 400; border-bottom: 1px dotted #ffffff; padding-bottom: 8px; margin: 30px 0 15px; }
.about-content h3:first-child, .about-heading:first-child { margin-top: 0; }
.about-heading.warning { color: #cc3333; border-bottom-color: rgba(204, 51, 51, 0.3); }
.about-content ul, .about-list { list-style: none; padding-left: 10px; }
.about-content li, .about-list li { margin-bottom: 8px; padding-left: 15px; position: relative; color: #ffffff; }
.about-content li::before, .about-list li::before { content: "・"; position: absolute; left: 0; }
.warning-text { color: #cc3333; font-weight: bold; }
.password-code { font-family: monospace; font-size: 1.2em; background: rgba(10, 37, 64, 0.1); padding: 2px 10px; border-radius: 4px; color: #ffffff; }
.small-text { font-size: 0.8em; opacity: 0.7; }
.author-credit { text-align: center; margin-top: 40px; opacity: 0.7; color: #ffffff; }

/* ========================================
   Category Navigation
   ======================================== */
.category-nav { margin-bottom: 30px; }
.category-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; }
.novel-card, .category-card { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 8px; cursor: pointer; transition: all 0.4s ease; display: flex; flex-direction: column; text-decoration: none; min-height: 200px; }
.novel-card:hover, .category-card:hover { transform: translateY(-5px); border-color: #ffffff; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); background: rgba(64, 224, 208, 0.08); }
.category-icon { font-size: 2rem; margin-bottom: 10px; }
.category-name { font-size: 1.1rem; color: #fff; letter-spacing: 0.1em; margin-bottom: 5px; }
.category-desc { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

/* ========================================
   Reader Content
   ======================================== */
.reader-content { 
    width: 95% !important; 
    max-width: none !important; 
    margin: 0 auto 30px; 
}

/* Override base-style.css limitation */
.horizontal-text {
    max-width: 100% !important;
}

.story-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.back-btn { background: transparent; border: 1px solid rgb(6, 167, 150); color: #ffffff; padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; transition: 0.3s; text-decoration: none; }
.back-btn:hover { background: rgb(2, 167, 150); }
.reader-title { font-size: 1.5rem; font-weight: 400; color: #fff; letter-spacing: 0.05em; }
.post-meta { display: flex; gap: 20px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 30px; flex-wrap: wrap; }

/* ----------------------------------------------------
   Story Text (View)
------------------------------------------------------- */
.story-body {
    line-height: 2.2;
    font-size: 1.05rem;
    margin-top: 2rem;
    word-break: break-all;
}

.story-body h2 {
    font-size: 1.4rem;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.story-body h3 {
    font-size: 1.15rem;
    color: #fff;
    border-left: 3px solid #40e0d0;
    padding-left: 10px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.story-body p { margin-bottom: 1.5em; text-indent: 1em; }

/* ========================================
   Novel Grid (Card Layout)
   ======================================== */
.novel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-title { font-size: 1.1rem; font-weight: 400; margin-bottom: 10px; line-height: 1.5; }
.card-title a { color: #fff; }
.card-title a:hover { color: #ffffff; }
.card-desc { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; max-height: 4.8em; overflow: hidden; line-height: 1.6; }
.card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.card-date { color: rgba(255, 255, 255, 0.4); }
.read-more { color: #ffffff; }


/* Map PPP IDs to Deep Sea Styles (Optional) */
#index-base { background: transparent !important; }
#profile-area { display: none; }

/* ========================================
   PPP Home Menu Integration
   ======================================== */
/* Map .home_menu to .category-cards grid layout */
.home_menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    justify-content: center; /* Override inline style if any */
}

/* Map .home_menu_item to .category-card style */
.home_menu_item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-height: 150px; /* Slightly smaller than full card if no desc */
    justify-content: center;
    align-items: center;
    color: #fff;
}

.home_menu_item:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: rgba(64, 224, 208, 0.08);
    color: #fff;
    text-decoration: none;
}

/* Internal elements of home_menu_item */
.home_menu_item img {
    margin-bottom: 10px;
    max-width: 40px; /* Restrict icon size */
    height: auto;
}

.home_menu_item span {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}


/* ========================================
   Overlay Customization for Home Menu
   ======================================== */
.nav-overlay {
    overflow-y: auto; /* Allow scrolling if menu is long */
    display: block; /* Switch from flex to block for reliable scrolling */
    padding: 60px 20px;
    text-align: center;
}

/* Vertical list layout for menu in overlay */
.nav-overlay .home_menu {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 40px auto;
    gap: 20px;
}

/* Compact item style for overlay - Transparent/No Box */
.nav-overlay .home_menu_item {
    min-height: auto;
    padding: 15px 0;
    flex-direction: row;
    justify-content: center; /* Center align like original menu */
    gap: 15px;
    background: transparent; /* Remove square background */
    border: none; /* Remove border */
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
}

.nav-overlay .home_menu_item:hover {
    transform: none; /* Disable lift effect */
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    text-shadow: 0 0 15px rgba(64, 224, 208, 0.8); /* Glow text instead */
}

.nav-overlay .home_menu_item img {
    margin-bottom: 0;
    max-width: 30px;
    filter: drop-shadow(0 0 5px rgb(64, 224, 208)); /* Add glow to icon */
}

.nav-overlay .home_menu_item span {
    font-size: 1.4rem; /* Larger font like original nav */
    letter-spacing: 0.1em;
}

/* ========================================
   Custom HR (Horizontal Rule)
   ======================================== */
hr {
    border: none;
    border-top: 1px dotted rgb(255, 255, 255);
    margin: 30px 0;
    height: 1px;
    background: transparent;
}

/* ========================================
   Article Headers (H1-H6)
   ======================================== */
#content h1, #content h1.md {
    font-size: 1.6rem !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(64, 224, 208, 0.5) !important;
    padding-bottom: 10px !important;
    margin: 40px 0 20px !important;
    letter-spacing: 0.1em !important;
    line-height: 1.5 !important;
    background: transparent !important;
    border-left: none !important;
}

#content h2, #content h2.md {
    font-size: 1.4rem !important;
    color: #e0fbfd !important;
    border-left: 4px solid #ffffff !important;
    padding: 10px 15px !important;
    margin: 35px 0 15px !important;
    background: linear-gradient(90deg, rgba(64, 224, 208, 0.1) 0%, transparent 100%) !important;
    letter-spacing: 0.1em !important;
    border-bottom: none !important;
}

#content h3, #content h3.md {
    font-size: 1.2rem !important;
    color: #ffffff !important;
    margin: 30px 0 15px !important;
    padding-bottom: 5px !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5) !important;
}

#content h4, #content h4.md {
    font-size: 1.1rem !important;
    color: #fff !important;
    margin: 25px 0 15px !important;
    padding-left: 15px !important;
    position: relative !important;
}

#content h4::before {
    content: "◁";
    position: absolute;
    left: 0;
    color: #ffffff;
    font-size: 0.8em;
    top: 0.2em;
}

/* ========================================
   More Link (Button Style)
   ======================================== */
/* .more, a.more, .more-button */
.more, a.more, button.more-button {
    display: table !important;
    margin: 30px auto !important;
    padding: 10px 40px !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    text-align: center !important;
    transition: 0.3s !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    background: rgba(64, 224, 208, 0.05) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    width: auto !important;
}

.more:hover, a.more:hover, button.more-button:hover {
    background: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.6) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* ========================================
   Novel Controller (Vertical Text Settings)
   ======================================== */
.vt-controler {
    background: rgba(7, 135, 221, 0.95) !important;
    border: 1px solid #ffffff !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8) !important;
    border-radius: 8px !important;
}

.vt-controler span {
    color: #fff !important;
    border-color: rgba(64, 224, 208, 0.3) !important;
}

.vt-controler .vt-controler-active {
    background: #ffffff !important;
    color: #02111b !important;
    font-weight: bold !important;
}

.vt-title-1, .vt-title-2, .vt-title-3 {
    color: #ffffff !important;
    font-weight: normal !important;
}

/* Controller Launch Icon */
.vt-controler-ctl {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 2px 6px !important;
    cursor: pointer !important;
}

.vt-controler-ctl:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.8) !important;
    box-shadow: none !important;
    border: none !important;
}

/* ========================================
   Action Buttons Area (Like & Share)
   ======================================== */
.clap-area {
    text-align: center !important;
    margin: 40px 0 !important;
}

#like-it {
    display: inline-block !important;
    margin: 0 auto 10px !important;
}

/* ========================================
   Post Navigation (Next/Prev)
   ======================================== */
.post-navigation {
    text-align: center !important;
    margin: 30px auto !important;
    width: 100% !important;
}

/* ========================================
   Tag Cloud Placeholder
   ======================================== */
#tag-cloud-placeholder {
    /* display: none; Removed to allow manual content */
    display: block;
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    border-top: 1px dashed rgba(64, 224, 208, 0.3);
    border-bottom: 1px dashed rgba(64, 224, 208, 0.3);
}

#tag-cloud-placeholder .tag {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.5);
    border-radius: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

#tag-cloud-placeholder a.tag {
    cursor: pointer;
}

#tag-cloud-placeholder a.tag:hover {
    background: #ffffff;
    color: #fdfdfd;
}

#tag-cloud-placeholder span.tag {
    cursor: default;
    opacity: 0.9;
}

/* ========================================
   Filter Section (Added for Gallery)
   ======================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn, .tag-cloud a {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    display: inline-block;
    text-decoration: none;
    margin: 5px; /* Add margin for legacy support */
}

.tab-btn:hover,
.tab-btn.active-filter,
.tag-cloud a:hover,
.tag-cloud a.active-filter {
    background: rgba(64, 224, 208, 0.2) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* Override previous tag cloud styles if necessary */
#tag-cloud-placeholder .tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* ========================================
   Chapter List (Added for Long Novels)
   ======================================== */
.chapter-list {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 20px 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.chapter-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.chapter-item a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
    text-decoration: none;
}

.chapter-item a:hover {
    background: rgba(64, 224, 208, 0.1);
    color: #ffffff;
    padding-left: 15px;
}

.chapter-num {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
    min-width: 2em;
}

.chapter-title {
    font-size: 1rem;
    flex: 1;
    text-align: left;
}

.chapter-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
    text-align: right;
}

/* ========================================
   Dream Settings Form
   ======================================== */
.dream-form-container {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    margin-top: 30px;
}

.dream-section-title {
    color: #ffffff;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.dream-sub-title {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.dream-input-group {
    margin-bottom: 15px;
}

.dream-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.dream-input-row {
    display: flex;
    gap: 10px;
}

.dream-input, .dream-select {
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
}

.dream-input {
    width: 45%;
}

.dream-input.full-width {
    width: 60%;
}

.dream-btn-group {
    text-align: center;
    margin-top: 30px;
}

.dream-btn {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dream-btn.register {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.dream-btn.register:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dream-btn.delete {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    padding: 10px 20px;
    margin-left: 10px;
}

.dream-btn.delete:hover {
    background: rgba(255, 107, 107, 0.1);
}

.preview-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.preview-kanji {
    font-weight: bold;
    color: #ffffff;
}

.preview-looks {
    font-size: 0.8em;
    opacity: 0.8;
}

/* ========================================
   PC Layout (768px+): Left Sidebar
   ======================================== */
/* Default: Hide sidebar on mobile */
.left-sidebar {
    display: none;
}

@media (min-width: 768px) {
    /* Show sidebar on PC */
    .left-sidebar {
        display: flex;
    }
    
    /* Hide mobile hamburger menu on PC */
    .menu-toggle {
        display: none;
    }
    
    /* Create left sidebar */
    .ocean {
        display: flex;
        flex-direction: row;
    }
    
    .left-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        z-index: 100;
        overflow-y: auto;
    }
    
    .left-sidebar .nav-menu,
    .left-sidebar .nav-menu ul,
    .left-sidebar ul,
    .left-sidebar .home_menu,
    .left-sidebar .home_menu_item,
    .left-sidebar .home_menu_item_current {
        list-style: none !important;
        padding: 0;
        margin: 0;
        background: transparent !important;
        border: none !important;
    }
    
    /* Wildcard reset for sidebar menu to kill all spacing */
    .left-sidebar .nav-menu * {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        line-height: 1.2 !important;
        list-style: none !important;
        min-height: 0 !important; /* Fix for verified issue */
        height: auto !important;
    }

    .left-sidebar .nav-menu {
        text-align: right;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important; /* Small gap between items */
    }

    /* Restore link display and padding */
    .left-sidebar .nav-menu a {
        display: block !important;
        padding: 2px 0 !important;
        font-size: 0.9rem !important;
        letter-spacing: 0.1em !important;
        color: #ffffff !important;
        text-decoration: none !important;
        cursor: pointer !important;
    }
    
    .left-sidebar .nav-menu a:hover {
        color: rgba(255,255,255,0.7) !important;
        text-decoration: underline !important;
    }
    
    .left-sidebar .site-concept {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
        margin-bottom: 5px;
    }
    
    .left-sidebar .main-title {
        font-size: 1.2rem;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px dotted rgba(255,255,255,0.3);
    }
    
    .left-sidebar .author-name {
        font-size: 0.8rem;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px dotted rgba(255,255,255,0.3);
    }
    
    .left-sidebar .nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .left-sidebar .nav-menu li {
        margin-bottom: 15px;
    }
    
    .left-sidebar .nav-menu a {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        color: #ffffff;
        transition: 0.3s;
    }
    
    .left-sidebar .nav-menu a:hover {
        color: rgba(255,255,255,0.7);
    }
    
    /* Main content shifts right */
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
        padding: 40px;
    }
    
    /* Force Console Header to Top */
    #console-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
    }

    /* Increase card width for PC */
    .glass-panel,
    .novel-grid,
    .main-content .about-section {
        width: 90% !important;
        max-width: 1200px !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    .site-footer {
        position: static;
        width: 100%;
        text-align: center;
        margin-top: 60px;
        padding-bottom: 20px;
        pointer-events: auto;
    }
    
    .site-footer a {
        pointer-events: auto;
    }
    
    /* Hide header card on PC (info moves to sidebar) */
    .pc-hide {
        display: none;
    }
}

/* Back to Top Button */
/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important; /* Aligned with Chat Widget (20px) */
    right: 120px !important; /* Left of Chat Widget */
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important; /* Reset padding */
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    display: none; /* Initial hidden state */
}

/* Ensure the icon itself is centered and has no weird spacing */
.back-to-top i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block !important; /* Fix for some font icon issues */
    vertical-align: middle !important;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px !important;
        right: 100px !important; /* Adjusted for mobile chat button */
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   List Page Styling
   ======================================== */
#loglist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#loglist li {
    padding: 15px 10px;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

#loglist li:last-child {
    border-bottom: none;
}

#loglist li:hover {
    background: rgba(255, 255, 255, 0.1);
}

#loglist li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: block;
}

#loglist li a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#loglist .date {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 15px;
}

#loglist .new {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
}

#loglist .update {
    color: #40e0d0;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
}

/* Header & Control */
#header #top-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    opacity: 0.8;
}

#header #top-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Pager */
#pager {
    text-align: center;
    margin: 30px 0;
}

#pager a, #pager .pager-current-index {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

#pager a:hover {
    background: rgba(255, 255, 255, 0.2);
}

#pager .pager-current-index {
    background: #fff;
    color: #0a2540;
    font-weight: bold;
    border-color: #fff;
}

/* Return Button */
#return-button {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 40px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

#return-button:hover {
    background: #fff;
    color: #0a2540;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ========================================
   Password Form Styling
   ======================================== */
.password_form {
    border: 1px solid #fff !important; /* Override red border */
    background: rgba(255, 255, 255, 0.1); /* Slight background */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #fff;
}

.password_form_inner {
    border: none !important; /* Remove inner border if exists */
    color: #fff !important;
}

/* Button style */
.password_form input[type="submit"],
.button_inline,
.mail_form input[type="submit"],
.mail_form .button {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 5px 20px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    font-family: inherit !important;
}

.password_form input[type="submit"]:hover,
.button_inline:hover,
.mail_form input[type="submit"]:hover,
.mail_form .button:hover {
    background: #fff !important;
    color: #0a2540 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Input text style */
.password_form input[type="text"].flat-input {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
}

/* ========================================
   Novel Card Styling (plugin_novel_outline2)
   ======================================== */
.novel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.novel-card {
    background: rgba(255, 255, 255, 0.15) !important; /* White translucent */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.3s, background 0.3s;
    color: #fff;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.novel-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.novel-card .card-header {
    margin-bottom: 10px;
}

.novel-card .tag-area a {
    font-size: 0.85rem;
    color: #0a2540;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.novel-card .card-title {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.novel-card .card-title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.novel-card .card-title a:hover {
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.8);
}

.novel-card .card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.novel-card .card-footer {
    border-top: 1px dotted rgba(255,255,255,0.3);
    margin-top: auto; /* Push to bottom */
    padding-top: 10px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.novel-card .read-more {
    color: #0a2540;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 12px;
    border-radius: 15px;
    border: none;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.novel-card .read-more:hover {
    background: #40e0d0;
    color: #fff;
    box-shadow: 0 2px 10px rgba(64, 224, 208, 0.6);
}
