/* --- Variables & Core Setup --- */
:root {
    --rainbow-speed: 60s; 
    --bg-speed: 60s;      
    --muted-sat: 35%;     
    --muted-light: 45%;   
}

body, html {
    background-color: #1a0a2e; 
    animation: bg-hue var(--bg-speed) infinite linear;
    display: flex;
    flex-direction: column; 
    min-height: 100vh;      
    margin: 0;              
    overflow-x: hidden;
    overflow-y: scroll; /* Add this line to prevent scrollbar shifting */
}
/* --- Layout --- */
.wrapper {
    display: flex;
    padding: 60px;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
}

nav {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0;
    padding: 0;
}

.site-link {
    font-family: 'Outfit-Variable', Helvetica, Arial, sans-serif;
    text-decoration: none;
    color: #222; 
    font-weight: 800;
    font-size: 6.8rem;
    letter-spacing: -0.1em;
    display: block;      
    margin-bottom: 0;    
}

/* Unified Title Geometry */
.site-title {
    font-family: 'Outfit-Variable', Helvetica, Arial, sans-serif !important;
    font-weight: 900 !important;
    animation: full-hue var(--rainbow-speed) infinite linear !important;
    mix-blend-mode: difference !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    font-size: 3.5rem !important; 
    letter-spacing: -2px !important;
    line-height: 1 !important;
}

/* --- Navigation Menu --- */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 10px;
}

.menu-list a {
    font-family: 'Outfit-Variable', Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 0.8em;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.5em; 
    display: inline-block;
    transition: opacity 0.3s;
    animation: full-hue var(--rainbow-speed) infinite linear;
}

.menu-list a:hover {
    opacity: 0.6;
}

/* --- Staggered Color Offsets --- */
.item-1 a { animation-delay: 0s; }
.item-2 a { animation-delay: -7s; }
.item-3 a { animation-delay: -14s; }
.item-4 a { animation-delay: -21s; }
.item-5 a { animation-delay: -28s; }
.item-6 a { animation-delay: -35s; }
.item-7 a { animation-delay: -42s; }
.item-8 a { animation-delay: -49s; }
.item-22 a { animation-delay: -51s; }
.item-23 a { animation-delay: -54s; }
.item-24 a { animation-delay: -57s; }
.item-25 a { animation-delay: -60s; }

/* --- Keyframe Animations --- */
@keyframes full-hue {
    0% { color: #ff0000; }   
    33% { color: #00ff00; }  
    66% { color: #0000ff; }  
    100% { color: #ff0000; } 
}

@keyframes bg-hue {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

/* --- Center Image Container --- */
.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.hero-image {
    width: 45%;
    max-width: 500px;
    aspect-ratio: 4/5;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Mobile Responsiveness (Base) --- */
@media (max-width: 768px) {
    .wrapper { padding: 40px 30px; }
    .site-title { font-size: 3.5rem; line-height: -2.5em; }
    .menu-list a { font-size: 1.8em; }
    .image-container { position: relative; height: 45vh; margin-top: 30px; }
    .hero-image { width: 85%; }
}

/**
* @license
* Font Family: Zodiak
* URL: https://www.fontshare.com/fonts/zodiak
*/
@font-face {
  font-family: 'Zodiak-Thin';
  src: url('../fonts/Zodiak-Thin.woff2') format('woff2'), url('../fonts/Zodiak-Thin.woff') format('woff'), url('../fonts/Zodiak-Thin.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-ThinItalic';
  src: url('../fonts/Zodiak-ThinItalic.woff2') format('woff2'), url('../fonts/Zodiak-ThinItalic.woff') format('woff'), url('../fonts/Zodiak-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Light';
  src: url('../fonts/Zodiak-Light.woff2') format('woff2'), url('../fonts/Zodiak-Light.woff') format('woff'), url('../fonts/Zodiak-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-LightItalic';
  src: url('../fonts/Zodiak-LightItalic.woff2') format('woff2'), url('../fonts/Zodiak-LightItalic.woff') format('woff'), url('../fonts/Zodiak-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Regular';
  src: url('../fonts/Zodiak-Regular.woff2') format('woff2'), url('../fonts/Zodiak-Regular.woff') format('woff'), url('../fonts/Zodiak-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-Italic';
  src: url('../fonts/Zodiak-Italic.woff2') format('woff2'), url('../fonts/Zodiak-Italic.woff') format('woff'), url('../fonts/Zodiak-Italic.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Bold';
  src: url('../fonts/Zodiak-Bold.woff2') format('woff2'), url('../fonts/Zodiak-Bold.woff') format('woff'), url('../fonts/Zodiak-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-BoldItalic';
  src: url('../fonts/Zodiak-BoldItalic.woff2') format('woff2'), url('../fonts/Zodiak-BoldItalic.woff') format('woff'), url('../fonts/Zodiak-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Extrabold';
  src: url('../fonts/Zodiak-Extrabold.woff2') format('woff2'), url('../fonts/Zodiak-Extrabold.woff') format('woff'), url('../fonts/Zodiak-Extrabold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-ExtraboldItalic';
  src: url('../fonts/Zodiak-ExtraboldItalic.woff2') format('woff2'), url('../fonts/Zodiak-ExtraboldItalic.woff') format('woff'), url('../fonts/Zodiak-ExtraboldItalic.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Black';
  src: url('../fonts/Zodiak-Black.woff2') format('woff2'), url('../fonts/Zodiak-Black.woff') format('woff'), url('../fonts/Zodiak-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-BlackItalic';
  src: url('../fonts/Zodiak-BlackItalic.woff2') format('woff2'), url('../fonts/Zodiak-BlackItalic.woff') format('woff'), url('../fonts/Zodiak-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Zodiak-Variable';
  src: url('../fonts/Zodiak-Variable.woff2') format('woff2'), url('../fonts/Zodiak-Variable.woff') format('woff'), url('../fonts/Zodiak-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Zodiak-VariableItalic';
  src: url('../fonts/Zodiak-VariableItalic.woff2') format('woff2'), url('../fonts/Zodiak-VariableItalic.woff') format('woff'), url('../fonts/Zodiak-VariableItalic.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: italic;
}

/**
* @license
* Font Family: Outfit
* URL: https://www.fontshare.com/fonts/outfit
*/
@font-face {
  font-family: 'Outfit-Thin';
  src: url('../fonts/Outfit-Thin.woff2') format('woff2'), url('../fonts/Outfit-Thin.woff') format('woff'), url('../fonts/Outfit-Thin.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-ExtraLight';
  src: url('../fonts/Outfit-ExtraLight.woff2') format('woff2'), url('../fonts/Outfit-ExtraLight.woff') format('woff'), url('../fonts/Outfit-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Light';
  src: url('../fonts/Outfit-Light.woff2') format('woff2'), url('../fonts/Outfit-Light.woff') format('woff'), url('../fonts/Outfit-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Regular';
  src: url('../fonts/Outfit-Regular.woff2') format('woff2'), url('../fonts/Outfit-Regular.woff') format('woff'), url('../fonts/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Medium';
  src: url('../fonts/Outfit-Medium.woff2') format('woff2'), url('../fonts/Outfit-Medium.woff') format('woff'), url('../fonts/Outfit-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-SemiBold';
  src: url('../fonts/Outfit-SemiBold.woff2') format('woff2'), url('../fonts/Outfit-SemiBold.woff') format('woff'), url('../fonts/Outfit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Bold';
  src: url('../fonts/Outfit-Bold.woff2') format('woff2'), url('../fonts/Outfit-Bold.woff') format('woff'), url('../fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-ExtraBold';
  src: url('../fonts/Outfit-ExtraBold.woff2') format('woff2'), url('../fonts/Outfit-ExtraBold.woff') format('woff'), url('../fonts/Outfit-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Black';
  src: url('../fonts/Outfit-Black.woff2') format('woff2'), url('../fonts/Outfit-Black.woff') format('woff'), url('../fonts/Outfit-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Outfit-Variable';
  src: url('../fonts/Outfit-Variable.woff2') format('woff2'), url('../fonts/Outfit-Variable.woff') format('woff'), url('../fonts/Outfit-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* --- Work Page Layout --- */
.submenu-list, 
.nested-list {
    list-style: none;
    padding: 0;
    margin: 0; 
}

.submenu-list a, 
.nested-list a {
    font-size: 1.4em; 
    line-height: 1.2;
}

.site-link {
    font-size: 4rem;
    opacity: 0.15; 
    position: absolute;
    top: 20px !important;
    left: 60px !important;
    z-index: -1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .submenu-list { margin-left: 30px; }
    .nested-list { margin-left: 25px; }
    .site-link { font-size: 2.5rem; top: 10px !important; left: 20px !important; }
}

/* --- Top Page Specifics --- */
.top-page-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px; 
}

.top-lists {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-lists li {
    margin-bottom: 8px; 
}

.top-lists a {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.1;
}

.item-6 a  { animation-delay: -3s; }
.item-7 a  { animation-delay: -6s; }
.item-8 a  { animation-delay: -9s; }
.item-9 a  { animation-delay: -12s; }
.item-10 a { animation-delay: -15s; }
.item-11 a { animation-delay: -18s; }
.item-12 a { animation-delay: -21s; }
.item-13 a { animation-delay: -24s; }
.item-14 a { animation-delay: -27s; }
.item-15 a { animation-delay: -30s; }
.item-16 a { animation-delay: -33s; }
.item-17 a { animation-delay: -36s; }
.item-18 a { animation-delay: -39s; }
.item-19 a { animation-delay: -42s; }
.item-20 a { animation-delay: -45s; }
.item-21 a { animation-delay: -48s; }

@media (max-width: 768px) {
    .nav-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .top-lists {
        padding-left: 20px; 
    }
}

/* --- Top List Pages (e.g., /top/movies.html) --- */
body.top_list {
    display: block !important; 
    overflow: visible !important; 
    min-height: 100vh;
}

/* Unified Container Padding (Overrides .top_list offsets) */
.top_list .top-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr); 
    gap: 80px; 
    width: 100% !important;
    max-width: none !important; 
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 60px !important; 
}

/* Strip inherited offsets from nested subpage wrappers */
.top_list .left-sidebar,
.top_list .sidebar-sticky,
.top_list nav {
    margin: 0 !important;
    padding: 0 !important;
}

.top_list .left-sidebar {
    position: relative; 
    height: 100%; 
}

/* Synchronized Sticky Lock */
.top_list .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 60px; 
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: none; 
}

.top_list .sidebar-sticky::-webkit-scrollbar {
    display: none; 
}

.top_list .col-content {
    padding-bottom: 100px;
}

.top_list .list-title, 
.top_list .rank-number {
    font-family: 'Outfit-Variable', Helvetica, Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.06em;
    animation: full-hue var(--rainbow-speed) infinite linear;
}

.top_list .list-title {
    font-size: 5.5rem;
    margin: 0 0 20px 0;
    line-height: 1;
}

.top_list .rank-number {
    font-size: 5.5rem;
    line-height: 0.8;
    flex-shrink: 0;
    margin-top: 5px; 
}

.top_list .intro-text, 
.top_list .item-details h3, 
.top_list .item-details p {
    font-family: 'Zodiak-Regular', serif;
}

.top_list .intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 80px;
    opacity: 0.8;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.7); 
}

.top_list .ranked-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.top_list .list-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.top_list .item-details h3 {
    font-size: 2.2rem;
    font-weight: normal;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
}

.top_list .item-details p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5); 
    max-width: 700px;
}

@media (max-width: 1024px) {
    .top_list .top-layout {
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    .top_list .sidebar-sticky {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
}

/* Synchronized Mobile Padding */
@media (max-width: 768px) {
    .wrapper, 
    .top_list .top-layout { 
        width: 100% !important;
        max-width: none !important; 
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 40px 30px !important;
    }
}