:root {
    --bg-color: #07090e;
    --sidebar-bg: #0b0f19;
    --header-bg: #0b0f19;
    --card-bg: #0b0f19;
    --text-color: #f1f5f9;
}

body.light-mode {
    --bg-color: #f8fafc;
    --sidebar-bg: #e2e8f0;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #0f172a;
}

body.font-small { font-size: 13px; }
body.font-medium { font-size: 15px; }
body.font-large { font-size: 18px; }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    min-width: 1200px;
    width: 1200px;
    height: 100vh;
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

.sidebar {
    width: 65px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0, 243, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 25px;
    flex-shrink: 0;
    z-index: 10;
}
.sidebar-top-icon { font-size: 24px; color: #a855f7; text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }
.sidebar-icon { font-size: 24px; cursor: pointer; padding: 10px; border-radius: 10px; color: #94a3b8; transition: all 0.3s ease; }
.sidebar-icon:hover { color: #00f3ff; text-shadow: 0 0 10px #00f3ff; }
.sidebar-icon.active { background: rgba(0, 243, 255, 0.1); color: #00f3ff; box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.3); }

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-color);
    position: relative;
    width: calc(1200px - 65px);
    padding-bottom: 320px;
}

.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
    z-index: 5;
}
.search-box input {
    width: 100%;
    max-width: 450px;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    text-align: center;
    font-size: 15px;
}
.hamburger-menu {
    position: absolute;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #00f3ff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    z-index: 100;
    width: 160px;
}
.menu-item-btn {
    background: none;
    border: none;
    padding: 14px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-color);
    font-weight: bold;
}
.menu-item-btn:hover { background: rgba(0, 243, 255, 0.15); color: #00f3ff; }

.nav-bar {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-links {
    display: flex;
    gap: 20px;
    font-weight: bold;
    font-size: 15px;
    flex-wrap: wrap;
}
.nav-links span { cursor: pointer; color: #94a3b8; transition: all 0.3s; }
.nav-links span:hover { color: #00f3ff; }
.nav-links span.active { color: #00f3ff; border-bottom: 2px solid #00f3ff; padding-bottom: 4px; }

.main-banner {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(88,101,242,0.2), rgba(0,243,255,0.15)), #0b0f19;
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
    margin-bottom: 25px;
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.3s ease;
}
.main-banner:hover {
    border-color: #5865F2;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}
.banner-content h1 {
    font-size: 28px;
    color: #5865F2;
    margin: 0 0 8px 0;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}
.banner-content p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}
.banner-discord-btn {
    background: #5865F2;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    white-space: nowrap;
    transition: background 0.3s;
}
.main-banner:hover .banner-discord-btn {
    background: #4752c4;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 1200px; height: 100vh;
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-box {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 30px;
    border-radius: 12px;
    width: 380px;
    position: relative;
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.25);
    border: 1px solid rgba(0, 243, 255, 0.4);
}
.close-modal {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #00f3ff;
}
.modal-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.modal-box input {
    padding: 12px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: #05070b;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
}
.action-btn {
    background: linear-gradient(135deg, #00f3ff, #0077ff);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transition: all 0.3s;
}
.action-btn:hover { box-shadow: 0 0 25px rgba(0, 243, 255, 0.8); transform: translateY(-2px); }

.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00f3ff; }
input:checked + .slider:before { transform: translateX(26px); }

.content-body { padding: 25px; flex: 1; }
.content-body h2 { margin-top: 0; font-size: 22px; border-bottom: 2px solid rgba(0, 243, 255, 0.2); padding-bottom: 8px; color: var(--text-color); }
.manga-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 15px; }
.manga-card { display: flex; flex-direction: column; align-items: center; background: var(--card-bg); border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 243, 255, 0.15); box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: all 0.3s ease; cursor: pointer; }
.manga-card:hover { transform: translateY(-6px); border-color: #00f3ff; }
.manga-cover { width: 100%; height: 180px; background: #030508; position: relative; background-size: cover; background-position: center; }
.manga-label { background: var(--card-bg); color: var(--text-color); width: 100%; text-align: center; font-size: 14px; padding: 10px 0; font-weight: bold; }
.manga-price { font-size: 12px; color: #00f3ff; padding-bottom: 6px; font-weight: bold; }
.manga-rating { font-size: 11px; color: #fbbf24; padding-bottom: 8px; }

.video-player-bar {
    position: fixed;
    bottom: 0;
    left: 65px;
    width: calc(1200px - 65px);
    background: rgba(7, 9, 14, 0.95);
    border-top: 2px solid #00f3ff;
    padding: 15px 25px;
    box-sizing: border-box;
    z-index: 500;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}
.video-container-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.video-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
