* {
    box-sizing: border-box;
    font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial
}

.container {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 6px 24px rgba(20, 20, 50, 0.04);
    padding: 28px;
    margin: 24px
}

body {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

h1 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #0f172a
}

.note {
    color: #475569;
    font-size: 13px;
    margin-top: 12px
}

.form-row {
    margin-bottom: 12px
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6e9f2;
    border-radius: 0px;
    font-size: 14px
}

.button {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 10px 14px;
    border-radius: 0px;
    border: none;
    font-weight: 600;
    cursor: pointer
}

.button:hover {
    background: #4338ca
}

.error {
    background: #fff2f2;
    color: #b91c1c;
    padding: 8px;
    border-radius: 0px;
    margin-bottom: 12px;
    border: 1px solid #fca5a5
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

.title-section {
    text-align: center;
    flex: 1
}

.welcome {
    font-size: 24px;
    color: #0f172a;
    font-weight: bold
}

.small {
    font-size: 13px;
    color: #64748b
}

.link {
    color: #4f46e5;
    text-decoration: none
}

.footer {
    margin-top: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px
}

@media (max-width:480px) {
    .container {
        padding: 20px
    }
}

/* Novels grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px
}

.tile {
    background: #fff;
    border: 1px solid #eef2ff;
    border-radius: 0px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
}

.tile:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1)
}

.thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0px;
    background: #f8fafc;
    border: 1px solid #eef2ff
}

.tile h3 {
    margin: 0;
    font-size: 15px;
    color: #0f172a
}

.tile .meta {
    font-size: 12px;
    color: #64748b
}

.tile a {
    display: block;
    width: 100%;
    text-decoration: none
}

/* Center alignment */
.center {
    text-align: center
}

/* Content styling */
#content {
    font-size: 16px;
    line-height: 1.6;
    text-indent: 1em;
    margin-top: 12px
}

/* Comment styling */
.comment-list {
    margin-top: 8px
}

.comment {
    background: #f8fafc;
    border: 1px solid #eef2ff;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 0px
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px
}

.user {
    font-weight: bold;
    color: #0f172a
}

.time {
    font-size: 12px;
    color: #64748b
}

.comment-text {
    color: #374151;
    line-height: 1.5
}

.no-comments {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 20px
}

/* Responsive layout */
.content-wrapper {
    gap: 18px
}

@media (min-width: 768px) {
    .content-wrapper {
        /* removed flex for sidebar */
    }
}

/* Fixed sidebar */
.fixed-sidebar {
    position: fixed;
    left: 20px;
    top: 200px;
    z-index: 10;
    display: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

@media (min-width: 1024px) {
    .fixed-sidebar {
        display: flex
    }
}

/* Icon buttons */
.button.icon-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

/* Panels */
.panel {
    background: #fff;
    border: 1px solid #eef2ff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0px
}