html {
    min-height: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f7efe9, #eddad0, #f2e2dc, #e8d4cc, #f7efe9);
    background-size: 500% 500%;
    animation: bg-shift 12s ease infinite;
    user-select: none;
    -webkit-user-select: none;
    color: #3d3535;
    font-family: "Roboto Mono", monospace;
    line-height: 1.7;
}
@keyframes bg-shift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(220, 180, 170, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(200, 160, 150, 0.1) 0%, transparent 50%);
}
::selection {
    background: #e8c4c4;
    color: #2a2424;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px;
}

.header-box {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
}
.header-box h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: #b08880;
}
.header-line {
    margin: 8px auto 0;
    width: 40px;
    height: 2px;
    background: #e0c8bd;
    border-radius: 1px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 16px 0 0;
}
nav a {
    text-decoration: none;
    color: #b08880;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
nav a:hover {
    background: rgba(255,250,247,0.7);
    border-color: #e5d5cc;
}
nav a.active {
    background: #fffaf7;
    border-color: #d4b8ae;
    box-shadow: 0 2px 8px rgba(180, 140, 130, 0.12);
}

.box {
    border: 1px solid #e5d5cc;
    background: #fffaf7;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(180, 140, 130, 0.1);
}
.box + .box {
    margin-top: 12px;
}
.box h2 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: #b08880;
}
.box p,
.box li {
    color: #5a4a4a;
    font-size: 0.9rem;
}
.box ul {
    margin: 0;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}
.box li {
    margin-bottom: 4px;
}
.box li strong {
    color: #3d3535;
}

.divider {
    text-align: center;
    margin: 12px 0;
    color: #c9a89c;
    font-size: 1rem;
    letter-spacing: 10px;
    user-select: none;
    opacity: 0.7;
}

.film-entry {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.film-entry img {
    height: 90px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}
.film-entry .film-title {
    color: #3d3535;
}
.film-entry .film-quote {
    margin: 2px 0 0;
    color: #5a4a4a;
    font-size: 0.85rem;
}
.film-divider {
    border-top: 1px solid #e5d5cc;
    margin: 12px 0;
}

.github-box {
    text-align: center;
    padding: 12px 24px;
    margin-top: 12px;
}
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b08880;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: lowercase;
}
.github-icon {
    width: 16px;
    height: 16px;
}

#films-section,
#shows-section {
    display: none;
}
#films-section.visible,
#shows-section.visible {
    display: block;
}

@media (max-width: 640px) {
    #oneko {
        display: none !important;
    }
}
