/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* The default checkerboard BG for general site use */
body {
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a; /* darker tile color */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' shape-rendering='crispEdges'><rect width='50' height='50' fill='%232a2a2a'/><rect x='50' y='50' width='50' height='50' fill='%232a2a2a'/></svg>");
    background-size: 100px 100px;
    background-position: 0 0;
    animation: moveBackground 5s linear infinite;
    min-height: 100vh;
    display: flex;
    position: relative;
    will-change: background-position;
}

.special-elite {
    font-family: 'Special Elite', cursive;
    font-style: italic;
    font-weight: 400;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
    }
    100% {
        background-position: 100px 100px, 100px 150px, 150px 50px, 50px 100px;
    }
}

/* Hell Theme -  a Red/Ghoulish Checkerboard for Hell Characters */
body.hell-theme {
    background-color: #1a0a0a;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' shape-rendering='crispEdges'><rect width='50' height='50' fill='%232d0a0a'/><rect x='50' y='50' width='50' height='50' fill='%232d0a0a'/></svg>");
    background-size: 100px 100px;
    background-position: 0 0;
    animation: moveBackground 5s linear infinite;
}

/* Wayfayers Theme - Blue Checkerboard for Wayfayers Team Characters */
body.wayfayers-theme {
    background-color: #05222e;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' shape-rendering='crispEdges'><rect width='50' height='50' fill='%23133653'/><rect x='50' y='50' width='50' height='50' fill='%23133653'/></svg>");
    background-size: 100px 100px;
    background-position: 0 0;
    animation: moveBackground 5s linear infinite;
}

/* Backrooms Theme - tiled texture for "The Labyrinth" and Backrooms entry pages */
body.backrooms-theme {
    background-color: #e5d07a;
    background-image: url("art-assets/backgrounds/backrooms-texture.png");
    background-size: 256px 256px;
    background-position: 0 0;
    background-repeat: repeat;
    animation: none !important;
    will-change: background-position;
}

/* Among Us Theme - For the among us characters and stuff */
body.amongus-theme {
    background-color: #000000;
    background: #000000 !important;
}

.amongus-stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: none;
}

body.amongus-theme .amongus-stars-canvas {
    display: block;
}

/* Matrix rain canvas - A unique theme for the Anonymous Hacker */
.matrix-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: none;
}

body.matrix-theme .matrix-canvas { display: block; }

#bg-snake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2; /* sit behind all page content as part of the background; leave room for bg sprites */
    background: transparent;
    opacity: 0.95;
    image-rendering: optimizeSpeed;
}

/* Pac-Man image that sits above the canvas but behind UI/content */
#bg-pacman-img {
    position: fixed;
    pointer-events: none;
    z-index: -1; /* above the snake canvas but behind text/UI */
    will-change: transform, left, top;
    image-rendering: pixelated;
}

/* Blinky ghost image (same layer as Pac-Man) */
#bg-blinky-img {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    will-change: transform, left, top;
    image-rendering: pixelated;
}

/* Pinky ghost image (same layer as Pac-Man) */
#bg-pinky-img {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    will-change: transform, left, top;
    image-rendering: pixelated;
}

/* Inky ghost image (same layer as Pac-Man) */
#bg-inky-img {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    will-change: transform, left, top;
    image-rendering: pixelated;
}

/* Clyde ghost image (same layer as Pac-Man) */
#bg-clyde-img {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    will-change: transform, left, top;
    image-rendering: pixelated;
}

#bg-pacman-img.pacman-invulnerable {
    animation: pacmanRespawnBlink 0.28s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 140, 0.9));
}

#bg-blinky-img.ghost-stunned,
#bg-pinky-img.ghost-stunned,
#bg-inky-img.ghost-stunned,
#bg-clyde-img.ghost-stunned {
    filter: drop-shadow(0 0 8px rgba(120, 200, 255, 0.85));
    animation: ghostStunPulse 0.65s ease-in-out infinite alternate;
}

@keyframes ghostStunPulse {
    from {
        transform: translateZ(0) scale(0.95);
        filter: drop-shadow(0 0 4px rgba(110, 200, 255, 0.7));
    }
    to {
        transform: translateZ(0) scale(1.05);
        filter: drop-shadow(0 0 10px rgba(160, 230, 255, 0.95));
    }
}

@keyframes pacmanRespawnBlink {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Focus mode: hide everything except game canvas and the sprite images + focus button */
body.snake-focus-mode > :not(#bg-snake):not(#bg-pacman-img):not(#bg-blinky-img):not(#bg-pinky-img):not(#bg-inky-img):not(#bg-clyde-img):not(#bg-snake-focus-btn) {
    display: none !important;
}

/* Focus button */
#bg-snake-focus-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    background: rgba(30,30,30,0.8);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

#bg-snake-focus-btn:hover { transform: translateY(-1px); }


@keyframes amongusStarsMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 256px 256px;
    }
} 

a:focus-visible,
.nav-button:focus-visible,
.home-icon:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Home page: hide back button */
.home .home-icon { display: none; }

.home .hero-section {
    padding: 4rem 3rem 7rem; /* extra bottom space for fixed footer */
    max-width: 900px;
}

/* Home page title styles */
.home .main-title {
    font-size: 4.5rem;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    padding-bottom: 2rem;
    letter-spacing: 2px;
    transition: all 0.5s ease;
}

.home .main-title:hover {
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
}

.home .main-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #888, transparent);
    border-radius: 2px;
}

.home .logo-image {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    image-rendering: crisp-edges;
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.home .logo-image:hover {
    transform: scale(1.05);
    animation: none;
}

/* Home page tagline */
.home .tagline {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    position: relative;
    background: linear-gradient(90deg, #888, #ddd, #888);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Home page content text blocks */
.home .content-text { max-width: 800px; margin: 0 auto; }

.home .content-text p {
    font-family: 'Lora', serif;
    font-size: 13pt;
    line-height: 1.9;
    color: #d0d0d0;
    margin: 1.5rem 0;
    text-align: left;
    background: rgba(40, 40, 40, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home .content-text p:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.home .content-text p:hover:before { transform: translateY(100%); }

.home .content-text p:hover {
    background: rgba(50, 50, 50, 0.6);
    border-left-color: rgba(255, 255, 255, 0.4);
    transform: translateX(8px);
    box-shadow: -5px 0 20px rgba(255, 255, 255, 0.1);
}

/* Home page sidebar navigation */
.home .nav-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 2rem 2rem 2rem 1.5rem;
    z-index: 100;
}

.home .nav-button {
    display: block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.home .nav-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.home .nav-button:hover:before { left: 100%; }

.home .nav-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

/* Primary Hub button styling to make "Explore The Hub" stand out */
.home .nav-button.hub-button {
    background: linear-gradient(135deg, #6a5cff 0%, #00d4ff 100%);
    text-decoration: none;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.home .nav-button.hub-button:hover {
    transform: translateX(-10px) scale(1.03);
    box-shadow: 0 18px 40px rgba(106,92,255,0.24), 0 6px 20px rgba(0,212,255,0.08);
    border-color: rgba(255,255,255,0.6);
}

/* Hero Section - Centered Content */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.main-title {
    font-size: 4rem;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Content Text */
.content-text {
    max-width: 700px;
    font-family: 'Lora', Arial, serif;
    font-size: 13pt;
    line-height: 1.38;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

/* Appearance section paragraph spacing: improve readability for character entries */
.appearance-section .bio-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-family: 'Merriweather', Arial, serif;
    font-size: 11pt;
    font-weight: 300;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(80, 80, 80, 0.5);
}

footer p {
    margin: 0;
    color: #ffffff;
    display: block;
}

/* Home Icon */
.home-icon {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.home-icon:before {
    content: '⇦';
    font-size: 1.5rem;
}

.home-icon:hover {
    background-color: rgba(50, 50, 50, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home .nav-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2rem;
        gap: 1.6rem;
        margin-top: 2rem;
    }

/* Mobile block: show a fullscreen desktop-only message and disable page interaction
   when viewport width is typical of phones. Adjust `max-width` if needed. */
@media (max-width: 768px) {
    html, body { height: 100%; overflow: hidden !important; }
    /* Hide all normal page content so only the overlay message is visible */
    body > * { display: none !important; }

    /* Use body ::before to present a full-screen message (still reachable without JS) */
    body::before {
        content: "This site is desktop only.\A\APlease open this site on a desktop or large-screen device to uuse it properly!";
        white-space: pre-wrap;
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(10,10,10,0.98));
        color: #ffffff;
        font-family: 'Lora', serif;
        font-size: 1.05rem;
        line-height: 1.4;
        text-align: center;
        padding: 2rem;
        z-index: 999999 !important;
        box-shadow: 0 0 80px rgba(0,0,0,0.9);
        pointer-events: auto;
    }
}
    
    .home .nav-button {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
        
    .nav-sidebar {
        flex-direction: column;
    }
    
    .home .nav-button {
        width: 100%;
    }
}


/* Wiki-specific styles */

/* Shared navigation subtitle under main page title */
.nav-subtitle {
    font-family: 'Syncopate', sans-serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    margin: 12px 0 8px;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

@media (max-width: 768px) {
    .nav-subtitle { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .nav-subtitle { font-size: 1.4rem; }
}

.entity-list,
.media-list,
.hell-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item,
.entity-item,
.media-item,
.hell-item {
    margin-bottom: 14px;
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    line-height: 2.0;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: listFadeIn 0.6s ease-out forwards;
}

@keyframes listFadeIn { to { opacity: 1; } }

.nav-item a,
.entity-item a,
.media-item a,
.hell-item a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
}

.nav-item a::before,
.entity-item a::before,
.media-item a::before,
.hell-item a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-item a:hover,
.entity-item a:hover,
.media-item a:hover,
.hell-item a:hover {
    transform: translateX(8px) scale(1.04);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.nav-item a:hover::before,
.entity-item a:hover::before,
.media-item a:hover::before,
.hell-item a:hover::before {
    width: 100%;
}

/* Global staggered reveal timings for all list items */
.nav-item:nth-child(1), .entity-item:nth-child(1), .media-item:nth-child(1), .hell-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2), .entity-item:nth-child(2), .media-item:nth-child(2), .hell-item:nth-child(2) { animation-delay: 0.10s; }
.nav-item:nth-child(3), .entity-item:nth-child(3), .media-item:nth-child(3), .hell-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4), .entity-item:nth-child(4), .media-item:nth-child(4), .hell-item:nth-child(4) { animation-delay: 0.20s; }
.nav-item:nth-child(5), .entity-item:nth-child(5), .media-item:nth-child(5), .hell-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6), .entity-item:nth-child(6), .media-item:nth-child(6), .hell-item:nth-child(6) { animation-delay: 0.30s; }
.nav-item:nth-child(7), .entity-item:nth-child(7), .media-item:nth-child(7), .hell-item:nth-child(7) { animation-delay: 0.35s; }
.nav-item:nth-child(8), .entity-item:nth-child(8), .media-item:nth-child(8), .hell-item:nth-child(8) { animation-delay: 0.40s; }
.nav-item:nth-child(9), .entity-item:nth-child(9), .media-item:nth-child(9), .hell-item:nth-child(9) { animation-delay: 0.45s; }
.nav-item:nth-child(10), .entity-item:nth-child(10), .media-item:nth-child(10), .hell-item:nth-child(10) { animation-delay: 0.50s; }

/* Hell-only hover color/glow override while keeping identical motion */
.hell-item a:hover {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.undead-section .hell-item a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Reduce Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    body { animation: none !important; }
    .home .logo-image,
    .home .tagline,
    .home .nav-button:before,
    .home .hell-button::after,
    .home .main-title,
    .home .content-text p {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Home specific small screens */
@media (max-width: 768px) {
    .home .main-title { font-size: 2.5rem; }
    .home .content-text p { padding: 1rem 1.5rem; }
}

.spotify-widget { position: absolute; left: 1rem; top: 120px; width: 320px; max-width: calc(100vw - 2rem); z-index: 200; background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.06); padding: 0.6rem; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.spotify-widget iframe { display: block; width: 100%; height: 352px; border-radius: 10px; border: 0; }

.spotify-widget .spotify-label {
    position: absolute;
    top: -36px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #fff;
    overflow: visible;
}

.spotify-widget .spotify-label a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}
.spotify-widget .spotify-label a {
    position: relative;
    will-change: transform, text-shadow;
    animation: spotify-bob 3s ease-in-out infinite, spotify-glow 2.8s ease-in-out infinite;
}

.spotify-widget .spotify-label::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0) 70%);
    transform: translateX(-120%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes spotify-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes spotify-glow {
    0%,100% { text-shadow: 0 0 6px rgba(255,255,255,0.03); }
    50% { text-shadow: 0 0 20px rgba(106,92,255,0.18), 0 0 36px rgba(0,212,255,0.06); }
}

@media (max-width: 480px) {
    .spotify-widget .spotify-label { font-size: 0.9rem; top: -32px; }
    .spotify-widget .spotify-label::before { top: -32px; }
}

@media (prefers-reduced-motion: reduce) {
    .spotify-widget .spotify-label a,
    .spotify-widget .spotify-label::before {
        animation: none !important;
        transform: none !important;
    }
}
}


/* ============================================
   CHARACTER ENTRY STYLES
   ============================================ */

.character-entry {
    padding-bottom: 4rem;
}

.character-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.character-title-image .title-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    image-rendering: crisp-edges;
}

.character-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.character-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

.character-page .title-ornament {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.character-page .title-ornament.left {
    background: linear-gradient(90deg, transparent, #ffffff);
}

.character-page .title-ornament.right {
    background: linear-gradient(90deg, #ffffff, transparent);
}

.character-page .character-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.character-page .left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.character-page .character-info-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(30, 30, 30, 0.4));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.character-page .info-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.character-page .info-header h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.character-page .info-list {
    padding: 1.5rem;
    margin: 0;
}

.character-page .info-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.character-page .info-item:last-child {
    border-bottom: none;
}

.character-page .info-item dt {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.character-page .info-item dd {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1rem;
    font-style: italic;
    color: #ffffff;
    margin: 0;
}

/* Status Colors and Animation */
.character-page .info-item.status-alive dd {
    color: #0ce23a;
    text-shadow: 0 0 8px rgba(107, 207, 127, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
}

.character-page .info-item.status-dead dd {
    color: #e70d0d;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.character-page .info-item.status-unknown dd {
    color: #fca709;
    text-shadow: 0 0 8px rgba(255, 217, 61, 0.3);
}

@keyframes statusPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(107, 207, 127, 0.3);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 12px rgba(107, 207, 127, 0.5);
        opacity: 0.9;
    }
}

/* Threat Level Colors (used by species entries) */
.character-page .info-item.threat-low dd {
    color: #0ce23a;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.25);
}

.character-page .info-item.threat-moderate dd {
    color: #fca709;
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.25);
}

.character-page .info-item.threat-high dd {
    color: #e70d0d;
    text-shadow: 0 0 8px rgba(244, 67, 54, 0.25);
}

.character-page .info-item.threat-extreme dd {
    color: #e70d0d;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.4);
    font-weight: 700;
    animation: threatPulse 1.8s ease-in-out infinite;
}

/* Section Titles (scoped to character pages to avoid media overrides) */
.character-page .section-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.character-page .title-decoration {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Biography Section */
.character-page .bio-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(20, 20, 20, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.character-page .bio-content {
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    line-height: 1.9;
    color: #e8e8e8;
}

.character-page .bio-content a {
    color: #8ab4f8;
    text-decoration: underline;
    font-style: italic;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.character-page .bio-content a:hover {
    color: #aac7ff;
}

.character-page .bio-paragraph {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1.00rem;
    text-indent: 2rem;
    position: relative;
}

.character-page .bio-paragraph:last-child {
    margin-bottom: 0;
}

/* Abilities Section */
.abilities-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(20, 20, 20, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.abilities-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ability-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #888888;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ability-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-left-color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.ability-card:hover::before {
    opacity: 1;
}

.ability-icon {
    font-size: 1.5rem;
    color: #888888;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.ability-card:hover .ability-icon {
    color: #ffffff;
}

.ability-content {
    flex: 1;
}

.ability-name {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.ability-description {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* Ultimate Ability Special Styling */
.ability-card.ultimate {
    border-left: 4px solid #ff0000;
    background: rgba(40, 0, 0, 0.4);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-left: 4px solid #ff0000;
}

.ability-card.ultimate:hover {
    border-left-color: #ff3333;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4), 0 0 30px rgba(255, 0, 0, 0.2);
    background: rgba(60, 0, 0, 0.6);
}

.ability-card.ultimate .ability-icon {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: pulseRed 2s ease-in-out infinite;
}

.ability-card.ultimate:hover .ability-icon {
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 0, 0, 1);
}

.ability-card.ultimate .ability-name {
    color: #ff0000;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.ability-card.ultimate:hover .ability-name {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.9), 0 0 25px rgba(255, 0, 0, 0.5);
}

@keyframes pulseRed {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 30px rgba(255, 0, 0, 0.5);
    }
}

/* Supreme Ability Special Styling */
.ability-card.supreme {
    border-left: 6px solid #ffd700;
    background: linear-gradient(90deg, rgba(40, 0, 60, 0.7) 0%, rgba(60, 0, 40, 0.7) 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 40px 10px rgba(255, 215, 0, 0.25), 0 0 80px 10px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.ability-card.supreme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 40%, rgba(255, 215, 0, 0.12) 0%, transparent 70%),
                radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.ability-card.supreme:hover {
    border-left-color: #fff700;
    background: linear-gradient(90deg, rgba(60, 0, 80, 0.85) 0%, rgba(80, 0, 60, 0.85) 100%);
    box-shadow: 0 0 60px 20px rgba(255, 215, 0, 0.35), 0 0 120px 20px rgba(255, 255, 255, 0.15);
}

.ability-card.supreme .ability-icon {
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #fff;
    animation: supremePulse 1.5s ease-in-out infinite;
}

.ability-card.supreme:hover .ability-icon {
    color: #fff700;
    text-shadow: 0 0 30px #fff700, 0 0 60px #fff;
}

.ability-card.supreme .ability-name {
    color: #ffd700;
    font-weight: 900;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #fff;
    letter-spacing: 2px;
}

.ability-card.supreme:hover .ability-name {
    color: #fff700;
    text-shadow: 0 0 30px #fff700, 0 0 60px #fff;
}

@keyframes supremePulse {
    0%, 100% {
        text-shadow: 0 0 20px #ffd700, 0 0 40px #fff;
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 40px #ffd700, 0 0 80px #fff;
        opacity: 0.85;
    }
}

/* Angelic Ability Special Styling */
.ability-card.angelic {
    border-left: 5px solid #bfe9ff;
    background: linear-gradient(90deg, rgba(240,248,255,0.06) 0%, rgba(220,245,255,0.04) 100%);
    border: 1px solid rgba(190,233,255,0.25);
    box-shadow: 0 0 40px 6px rgba(179,233,255,0.12), 0 8px 30px rgba(150,200,255,0.06) inset;
    position: relative;
    overflow: hidden;
}

.ability-card.angelic:hover {
    border-left-color: #9ee0ff;
    box-shadow: 0 6px 30px rgba(155,215,255,0.22), 0 0 80px rgba(190,233,255,0.12);
    background: linear-gradient(90deg, rgba(240,250,255,0.12) 0%, rgba(230,247,255,0.08) 100%);
}

.ability-card.angelic::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35) 0%, rgba(190,233,255,0.12) 30%, transparent 60%);
    transform: rotate(25deg);
    opacity: 0.9;
    pointer-events: none;
}

.ability-card.angelic .ability-icon {
    color: #c6f0ff;
    text-shadow: 0 0 12px rgba(198,240,255,0.9), 0 0 24px rgba(255,255,255,0.4);
    animation: angelGlow 3s ease-in-out infinite;
}

.ability-card.angelic:hover .ability-icon {
    color: #e9fcff;
    text-shadow: 0 0 20px rgba(230,252,255,1), 0 0 40px rgba(180,220,255,0.6);
}

.ability-card.angelic .ability-name {
    color: #dff8ff;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(200,240,255,0.85);
}

.ability-card.angelic:hover .ability-name {
    text-shadow: 0 0 18px rgba(220,250,255,0.95), 0 0 36px rgba(190,230,255,0.5);
}

@keyframes angelGlow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 0.92; }
}

/* Right Column Styles */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Character Portrait */
.character-portrait {
    margin: 0;
}

.portrait-frame {
    border-radius: 12px;
    padding: 0;
    position: relative;
}

.character-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Appearances Card */
.appearances-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.5));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.appearances-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.appearances-header h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.appearances-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.appearance-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.appearance-item:last-child {
    border-bottom: none;
}

.appearance-bullet {
    color: #888888;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.appearance-item a,
.appearance-item .appearance-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-style: italic;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.appearance-item a:hover {
    color: #cccccc;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.appearance-item a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    opacity: 0.7;
}

.media-status {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #999999;
    font-style: italic;
    display: block;
    margin-left: 1.3rem;
    margin-top: 0.25rem;
}

.appearance-item.lost-media .media-status {
    color: #e70d0d;
}

.appearance-item.partial-lost .media-status {
    color: #fca709;
}


@media (max-width: 1200px) {
    .character-layout {
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .character-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .right-column {
        position: static;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .character-page {
        padding: 1.5rem;
    }

    .character-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .title-ornament {
        width: 50px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .bio-section,
    .abilities-section {
        padding: 1.5rem;
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .character-title-wrapper {
        gap: 1rem;
    }

    .character-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .title-ornament {
        width: 30px;
    }

    .section-title {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .bio-paragraph {
        text-indent: 1rem;
    }

    .ability-card {
        padding: 1rem;
    }
}

/* Confetti canvas for partygoers page */
.confetti-canvas {
    position: absolute;
    inset: 0; /* fill the container */
    width: 100%;
    height: 100%;
    pointer-events: none; /* let clicks pass through */
    z-index: 0; /* sit behind main content which uses higher stacking context */
}

.content-container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .confetti-canvas { display: none; }
}
    /* Media pages layout - fully namespaced under body.media-page */

    body.media-page .media-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 420px;
        gap: 3rem;
        max-width: 1440px;
        margin: 0 auto;
        padding: 3rem 2.5rem;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 30, 0.9) 100%);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
        min-height: calc(100vh - 12rem);
    }

    body.media-page .media-main-content { 
        min-width: 0;
    }

    body.media-page .media-sidebar-image {
        position: static;
        height: fit-content;
    }

    body.media-page .media-sidebar-image:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    body.media-page .media-sidebar-image img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

    body.media-page .image-caption {
        font-size: 0.9rem;
        font-style: italic;
        color: #e8e8e8;
        text-align: center;
        line-height: 1.5;
        padding-top: 0.5rem;
    }

    body.media-page .image-caption a { 
        color: #ffffff; 
        text-decoration: none; 
        border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
        transition: all 0.2s ease;
    }
    body.media-page .image-caption a:hover { 
        color: #4fc3f7;
        border-bottom: 1px solid #4fc3f7;
    }

    body.media-page .media-header {
        background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
        padding: 4rem 2rem;
        margin-bottom: 3rem;
        border-bottom: 3px solid rgba(79, 195, 247, 0.3);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    body.media-page .media-header::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
        pointer-events: none;
    }

    body.media-page .media-title {
        font-family: 'Special Elite', cursive;
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 0.5rem;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.8),
            0 0 20px rgba(79, 195, 247, 0.3);
        position: relative;
        letter-spacing: 2px;
        font-weight: 400;
        line-height: 1.2;
        text-transform: uppercase;
    }

    body.media-page .media-status { 
        font-family: 'Special Elite', cursive; 
        font-size: 1.1rem; 
        margin-top: 1.5rem; 
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    body.media-page .status-label { 
        color: #aaaaaa;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    body.media-page .status-value { 
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1.4rem;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-size: 0.85rem;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
        position: relative;
        overflow: hidden;
        min-width: 160px;
        text-align: center;
        font-family: 'Special Elite', 'Courier New', monospace;
    }
    body.media-page .status-value::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    body.media-page .status-value:hover::before {
        left: 100%;
    }
    body.media-page .status-in-development { 
        color: #ffffff;
        background: linear-gradient(135deg, #388E3C 0%, #4CAF50 50%, #66BB6A 100%);
        border: 2px solid #4CAF50;
        animation: pulse-glow-green 2.5s ease-in-out infinite;
    }
    body.media-page .status-released { 
        color: #0a0a0a;
        background: linear-gradient(135deg, #64DD17 0%, #76FF03 50%, #B2FF59 100%);
        border: 2px solid #76FF03;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        animation: pulse-glow-green 2.5s ease-in-out infinite;
    }
    body.media-page .status-cancelled { 
        color: #ffffff;
        background: linear-gradient(135deg, #C62828 0%, #F44336 50%, #EF5350 100%);
        border: 2px solid #F44336;
        box-shadow: 0 3px 10px rgba(244, 67, 54, 0.4);
    }
    body.media-page .status-hiatus { 
        color: #0a0a0a;
        background: linear-gradient(135deg, #F57C00 0%, #FF9800 50%, #FFB74D 100%);
        border: 2px solid #FF9800;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        animation: pulse-glow-orange 3s ease-in-out infinite;
    }
    body.media-page .status-archival { 
        color: #ffffff;
        background: linear-gradient(135deg, #6A1B9A 0%, #9C27B0 50%, #BA68C8 100%);
        border: 2px solid #9C27B0;
        box-shadow: 0 3px 10px rgba(156, 39, 176, 0.4);
    }

    @keyframes pulse-glow-green {
        0%, 100% { 
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 8px rgba(76, 175, 80, 0.3);
        }
        50% { 
            box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4), 0 0 20px rgba(76, 175, 80, 0.6);
        }
    }

    @keyframes pulse-glow-orange {
        0%, 100% { 
            box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4), 0 0 8px rgba(255, 152, 0, 0.3);
        }
        50% { 
            box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4), 0 0 20px rgba(255, 152, 0, 0.6);
        }
    }

    body.media-page .cast-list { 
        background: rgba(255, 255, 255, 0.02);
        padding: 1.5rem 2rem;
        border-radius: 8px;
        margin-bottom: 2rem;
        max-width: 750px;
    }
    body.media-page .cast-list a { 
        color: #4fc3f7; 
        font-style: italic; 
        text-decoration: none; 
        border-bottom: 1px dotted rgba(79, 195, 247, 0.5);
        transition: all 0.2s ease;
    }
    body.media-page .cast-list a:hover { 
        color: #81d4fa; 
        border-bottom: 1px solid #81d4fa;
    }
    body.media-page .cast-list p { 
        padding-left: 1.5rem; 
        border-left: 4px solid rgba(79, 195, 247, 0.4);
        line-height: 1.8;
        font-size: 1.05rem;
    }

    body.media-page .trivia-list { 
        list-style-type: none;
        padding-left: 0;
        color: #e8e8e8; 
        font-family: Georgia, serif; 
        line-height: 1.9; 
        margin-bottom: 4rem; 
        max-width: 750px;
    }
    body.media-page .trivia-list li { 
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem 1.25rem 3rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border-left: 4px solid rgba(79, 195, 247, 0.3);
        position: relative;
        font-size: 1.05rem;
        overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease, background 0.25s ease;
    }
    body.media-page .trivia-list li::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }
    body.media-page .trivia-list li:hover {
        background: rgba(0,0,0,0.06);
        border-left-color: rgba(79, 195, 247, 0.6);
        transform: translateX(5px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    }
    body.media-page .trivia-list li:hover::before { opacity: 1; }
    body.media-page .trivia-list li::before {
        content: '◆';
        position: absolute;
        left: 1rem;
        top: 1.25rem;
        color: rgba(79, 195, 247, 0.5);
        font-size: 0.9rem;
    }
    body.media-page .trivia-list li a {
        color: #4fc3f7;
        text-decoration: none;
        border-bottom: 1px dotted rgba(79, 195, 247, 0.5);
        transition: all 0.2s ease;
    }
    body.media-page .trivia-list li a:hover {
        color: #81d4fa;
        border-bottom: 1px solid #81d4fa;
    }

    body.media-page .media-description { 
        font-family: Georgia, serif; 
        color: #e8e8e8; 
        line-height: 1.9; 
        margin-bottom: 2.5rem; 
        max-width: 750px;
        font-size: 1.05rem;
        background: rgba(255, 255, 255, 0.02);
        padding: 2rem;
        border-radius: 8px;
        border-left: 4px solid rgba(79, 195, 247, 0.4);
    }
    body.media-page .media-description strong { 
        font-weight: 700;
        color: #ffffff;
    }
    body.media-page .media-description em { 
        font-style: italic;
        color: #ffffff;
    }
    body.media-page .media-description a {
        color: #4fc3f7;
        text-decoration: none;
        border-bottom: 1px dotted rgba(79, 195, 247, 0.5);
        transition: all 0.2s ease;
    }
    body.media-page .media-description a:hover {
        color: #81d4fa;
        border-bottom: 1px solid #81d4fa;
    }

    body.media-page .section-title { 
        font-family: Georgia, serif; 
        font-size: 1.8rem; 
        font-style: italic; 
        font-weight: 700; 
        color: #ffffff; 
        text-align: center; 
        margin: 4rem 0 2rem; 
        padding-bottom: 0.75rem; 
        border-bottom: 2px solid rgba(79, 195, 247, 0.3);
        position: relative;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        text-transform: uppercase;
    }
    body.media-page .section-title::before, body.media-page .section-title::after {
        content: '◆';
        color: rgba(79, 195, 247, 0.6);
        font-size: 0.95rem;
        display: inline-block;
        line-height: 1;
        vertical-align: middle;
        padding: 0 0.9rem;
        transform: translateY(-0.18em);
    }

    body.media-page .section-title::before { margin-right: 0.9rem; }
    body.media-page .section-title::after  { margin-left: 0.9rem; }

    body.media-page .plot-synopsis { 
        font-family: 'Gloria Hallelujah', cursive; 
        font-style: italic; 
        color: #f0f0f0; 
        text-align: center; 
        padding: 2.5rem; 
        background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(79, 195, 247, 0.03) 100%);
        border-radius: 12px; 
        margin: 2rem auto; 
        line-height: 1.8; 
        border: 2px solid rgba(79, 195, 247, 0.2); 
        box-shadow: 
            inset 0 0 30px rgba(0,0,0,0.4),
            0 4px 16px rgba(79, 195, 247, 0.1);
        max-width: 750px;
        font-size: 1.1rem;
        position: relative;
        overflow: hidden;
    }
    body.media-page .plot-synopsis::before {
        content: '"';
        position: absolute;
        top: 0.5rem;
        left: 1rem;
        font-size: 4rem;
        color: rgba(79, 195, 247, 0.15);
        font-family: Georgia, serif;
        line-height: 1;
    }

    body.media-page .return-button { 
        display: inline-block; 
        padding: 1rem 2rem; 
        background: linear-gradient(135deg, rgba(79, 195, 247, 0.15), rgba(79, 195, 247, 0.08));
        border: 2px solid rgba(79, 195, 247, 0.4);
        border-radius: 10px; 
        color: #ffffff; 
        text-decoration: none; 
        text-align: center; 
        font-family: Arial, sans-serif; 
        font-size: 1rem; 
        font-weight: 600;
        letter-spacing: 0.5px;
        margin: 0 0 2.5rem 0;
        box-shadow: 0 4px 12px rgba(79, 195, 247, 0.15);
        transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, background 180ms ease;
        will-change: transform;
    }
    body.media-page .return-button:hover { 
        background: linear-gradient(135deg, rgba(79, 195, 247, 0.25), rgba(79, 195, 247, 0.15));
        border-color: rgba(79, 195, 247, 0.7);
        box-shadow: 0 6px 16px rgba(79, 195, 247, 0.25);
        color: #4fc3f7;
        transform: translateY(-3px);
    }
    body.media-page .return-button:active {
        transform: translateY(-1px);
    }

    @media (max-width: 1024px) {
        body.media-page .media-content-wrapper { 
            grid-template-columns: 1fr; 
            gap: 2rem;
            padding: 2rem 1.5rem;
        }
        body.media-page .media-sidebar-image { 
            position: static; 
            max-width: 450px; 
            margin: 2rem auto 0;
        }
    }

    @media (max-width: 768px) {
        body.media-page .media-header { 
            padding: 2.5rem 1.5rem;
        }
        body.media-page .media-title { 
            font-size: 2.2rem;
            letter-spacing: 1px;
        }
        body.media-page .media-content-wrapper { 
            padding: 1.5rem 1rem;
            gap: 1.5rem;
        }
        body.media-page .section-title {
            font-size: 1.5rem;
        }
        body.media-page .media-description,
        body.media-page .cast-list,
        body.media-page .trivia-list,
        body.media-page .plot-synopsis {
            padding: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        body.media-page .media-title {
            font-size: 1.8rem;
        }
        body.media-page .return-button {
            width: 100%;
        }
    }

    body.media-sidebar-500 .media-content-wrapper {
        grid-template-columns: 1fr 520px;
    }

    @media (max-width: 1024px) {
        body.media-sidebar-500 .media-content-wrapper {
            grid-template-columns: 1fr;
        }
    }

    em, i {
        color: inherit !important;
        font-style: italic;
    }