@font-face {
    font-family: cool;
    src: url('https://files.catbox.moe/cu0145.otf');
}

@font-face {
    font-family: semlor;
    src: url('https://files.catbox.moe/vic4lt.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: cool;
}

:root {
    --ink: #ededf0;
    --muted: #a6a8b5;
    --win-shadow: 0 20px 30px #000000b3, 0 6px 0 #0b0b10;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.15s cubic-bezier(0.2, 0.9, 0.4, 1);
}

body {
    min-height: 100svh;
    background-image: url('https://files.catbox.moe/txkhus.jpg');
    background-size: cover;
    background-attachment: fixed;
    display: block;
    padding: 20px;
    color: var(--ink);
}

.window {
    width: min(880px, 100%);
    background: linear-gradient(145deg, #eef0f8, #d3d6e0);
    border-radius: var(--radius);
    box-shadow: var(--win-shadow), inset 0 1px 1px #ffffffd0;
    overflow: hidden;
    margin: 0 auto;
}

.footer {
    width: 100%;
    text-align: center;
    color: white;
    -webkit-text-stroke: 0.1px black;
    -webkit-text-fill-color: white;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.window-inner {
    background: linear-gradient(#f0f2fa 56px, #dadde8 56px);
    display: flex;
    flex-direction: column;
}

.title-bar {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 16px;
    gap: 12px;
    background: linear-gradient(180deg, #f1f3fc, #77787e);
    border-bottom: 1px solid #b3b7c2;
    letter-spacing: 3px;
    
}

.window-dots {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ff4f4f;
    box-shadow: inset 0 2px 3px #ffffffb0, inset 0 -2px 4px #00000040, 0 1px 2px #00000050;
}

.dot.yellow {
    background: #fdb940;
}

.dot.green {
    background: #47d46a;
}

.hero {
    height: 12rem;
    background-size: 100% 100%;
    border-bottom: 3px solid #b31515;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, #ffffff20 0px 2px, transparent 2px 10px);
    mix-blend-mode: overlay;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1b1c25;
    border-top: 1px solid #0e0f14;
    border-bottom: 1px solid #353744;
}

.nav-group {
    display: flex;
    gap: 5px;
}

.icon-btn {
    background: linear-gradient(180deg, #ff3d3d, #c9181a);
    border: 1px solid #a31517;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    height: 38px;
    min-width: 38px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #791214, 0 6px 14px #ff2b2b70, inset 0 1px 1px #ffc5c5;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #791214, 0 6px 14px #ff2b2b70;
}

.icon-btn.secondary {
    background: linear-gradient(180deg, #31333e, #1d1f27);
    border-color: #414451;
    box-shadow: 0 4px 0 #12131a, 0 4px 12px #00000060, inset 0 1px 1px #7a7c8b;
    color: #ededf0;
}

.icon-btn.circle {
    width: 38px;
    padding: 0;
}

.address-bar {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    background: #f1f4fe;
    border-radius: 30px;
    border: 1px solid #a2a7b4;
    box-shadow: inset 0 1px 6px #0000001a, inset 0 -1px 1px #ffffff;
    padding: 0 10px 0 4px;
    height: 38px;
    min-width: 180px;
}

.address-field {
    font-size: 0.85rem;
    font-weight: 550;
    color: #16171d;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 4px;
    scrollbar-width: none;
    flex: 1;
}

.address-field::-webkit-scrollbar {
    display: none;
}

.content {
    background: linear-gradient(180deg, #0c0d14, #090a10);
    padding: 14px;
    min-height: 300px;
}

/* MAIN LAYOUT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* LEFT PANEL */
.nav-panel {
    height: fit-content;
    background: #151720;
    border-radius: var(--radius-sm);
    border: 1px solid #2d2f3d;
    overflow: hidden;
    box-shadow: 0 10px 18px #00000060;
    width: 15rem;
}

.panel-header {
    background: linear-gradient(180deg, #282b36, #191b23);
    padding: 10px 12px;
    color: white;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #0f1016;
    font-family: semlor;
}

.nav-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d0e15;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2b2d3a;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none !important;
}

a {
    text-decoration: none !important;
    color: white;
}

a:visited {
    text-decoration: none !important;
    color: white;
}

.nav-row:active {
    background: #1d1f2b;
    text-decoration: none !important;
}

.time {
    color: var(--muted);
    font-feature-settings: 'tnum';
}

.cd img {
    border-radius: 50%;
    animation: spin 7s infinite linear;
    max-width: 100%;
    height: auto;
}

.cd {
    text-align: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* MIDDLE COLUMN */
.middle-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* RIGHT COLUMN */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* CARD STYLES */
.card {
    height: fit-content;
    background: #12131c;
    border: 1px solid #2d2f3e;
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    box-shadow: inset 0 1px 0 #ffffff0d, 0 8px 14px #00000060;
}

.welcome-card {
    text-align: center;
    align-items: center;
}

.card.welcome-card {
    text-align: center;
    align-items: center;
}

.middle-column .card {
    width: 100%;
}

.card-title {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.title-badge {
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    align-items: center;
    letter-spacing: 1px;
    font-family: semlor;
    font-size: 1.2rem;

}

.prose {
    color: #ccd0db;
    line-height: 1.5;
    font-size: 0.9rem;
}

.prose a {
    color: #ff5b5b;
    text-decoration: underline dotted #ff5b5b;
    font-weight: 600;
}

.prose strong {
    color: white;
}

/* MARQUEE ROWS */
.marquee-row {
    background: #0d0e15;
    border: 1px solid #2b2d3a;
    border-radius: var(--radius-sm);
    padding: 8px 0;
    overflow: hidden;
    width: 200px;
}

.buttons-n-blinkers {
    overflow: hidden;
    width: fit-content;
    /* just for demonstration */
    position: relative;
    width: 300px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.buttons-n-blinkers>div {
    animation: marquee 140s linear infinite;
    animation-play-state: paused;
    animation-delay: -70s;
    /* This MUST be -duration/2 */
    width: 100%;
    min-width: fit-content;
    text-wrap: nowrap;
}

/* img {
    -webkit-filter: invert(40%) grayscale(100%) brightness(40%) sepia(100%) hue-rotate(-50deg) saturate(400%) contrast(2);
    filter: grayscale(100%) brightness(60%) sepia(100%) hue-rotate(-50deg) saturate(500%) contrast(0.9);
} */

img:hover {
    filter: none;
}

/* MUSIC PLAYER - Red Theme */
.music-player {
    background: #0d0e15;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #2b2d3a;
    margin-top: 10px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.play-pause-btn {
    background: linear-gradient(180deg, #ff3d3d, #c9181a);
    border: 2px solid #a31517;
    color: white;
    font-size: 1.0rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 0 #791214, 0 2px 8px #ff2b2b70, inset 0 1px 1px #ffc5c5;
    transition: all 0.1s ease;
}

.play-pause-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #791214, 0 2px 8px #ff2b2b70;
}

.play-pause-btn.playing {
    background: linear-gradient(180deg, #ff5e5e, #d61f21);
}

.track-info {
    flex: 1;
}

.track-name {
    color: #ffb3b3;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #1f1f2a;
    border-radius: 4px;
    border: 1px solid #2d2f3e;
    cursor: pointer;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4747, #b61717);
    width: 0%;
    border-radius: 4px;
    box-shadow: 0 0 8px #ff3b3b;
    transition: width 0.1s linear;
}

.time-display {
    color: #a6a8b5;
    font-size: 0.8rem;
    text-align: right;
    font-family: monospace;
}

#currentTime, #duration {
    color: #ffb3b3;
    font-weight: bold;
}

.buttons-n-blinkers.slow>div {
    animation: marquee 60s linear infinite;
    animation-play-state: paused;
    animation-delay: -30s;
    /* This MUST be -duration/2 */
    width: 100%;
    min-width: fit-content;
    text-wrap: nowrap;
}

.buttons-n-blinkers>div.follower {
    position: absolute;
    top: 0;
    animation-delay: 0s;
}

.buttons-n-blinkers>div.play {
    animation-play-state: running;
}

.buttons-n-blinkers:hover>div.play {
    animation-play-state: paused;
}


marquee {
    padding: 0.5rem;
    background-color: black;
    color: rgb(255, 161, 161);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.thin-marquee {
    height: 40px;
}

.marquee-content {
    display: flex;
    gap: 20px;
    animation: scrollMarquee 5s linear infinite;
    white-space: nowrap;
    width: fit-content;
}

.marquee-content.reverse {
    animation: scrollMarqueeReverse 5s linear infinite;
}

.marquee-content img {
    height: 30px;
    width: auto;
    image-rendering: pixelated;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollMarqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* SPLIT ROW */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 600px) {
    .split-row {
        grid-template-columns: 1fr;
    }
}

/* FEATURED CHARACTER */
.character-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.character-img {
    width: 100%;
    height: auto;
    border: 2px solid #b31b1b;
    border-radius: 8px;
}

.character-name {
    margin-top: 8px;
    font-weight: bold;
    color: #ffb3b3;
    text-align: center;
}

.character-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a0a0a;
    border: 2px solid #b31b1b;
    border-radius: 8px;
    padding: 12px;
    width: 200px;
    color: #ffe6e6;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.character-container:hover .character-popup {
    opacity: 1;
    visibility: visible;
}

/* FEATURED IMAGE */
.featured-image-container {
    text-align: center;
}

.featured-img {
    max-width: 100%;
    height: auto;
    border: 2px solid #b31b1b;
    border-radius: 8px;
}

.image-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #ccd0db;
    font-style: italic;
}

/* TODO LIST WITH SCROLLBAR */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* UPDATE LOG WITH SCROLLBAR */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.todo-item,
.update-item {
    padding: 8px;
    background: #0d0e15;
    border-left: 3px solid #b31b1b;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.update-date {
    color: #ff5b5b;
    font-weight: bold;
    margin-right: 8px;
}

/* SCROLLBAR STYLING (optional - makes it match your theme) */
.todo-list::-webkit-scrollbar,
.update-list::-webkit-scrollbar {
    width: 8px;
}

.todo-list::-webkit-scrollbar-track,
.update-list::-webkit-scrollbar-track {
    background: #0d0e15;
    border-radius: 4px;
}

.todo-list::-webkit-scrollbar-thumb,
.update-list::-webkit-scrollbar-thumb {
    background: #b31b1b;
    border-radius: 4px;
    border: 1px solid #ff5b5b;
}

.todo-list::-webkit-scrollbar-thumb:hover,
.update-list::-webkit-scrollbar-thumb:hover {
    background: #ff4747;
}

/* Firefox scrollbar support */
.todo-list,
.update-list {
    scrollbar-width: thin;
    scrollbar-color: #b31b1b #0d0e15;
}

/* BOTTOM BAR */
.bottom-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #e1e3ed, #77787e);
    border-top: 1px solid #b3b7c4;
}

.nav-btn {
    background: linear-gradient(180deg, #f4f6ff, #daddea);
    border: 1px solid #acb0bd;
    border-radius: 60px;
    padding: 10px 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #12121c;
    box-shadow: 0 4px 0 #838796, inset 0 1px 0 white;
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font-size: 0.85rem;
}

.nav-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #838796, inset 0 1px 0 white;
}

/* UTILITY */
button,
.icon-btn,
.nav-btn {
    touch-action: manipulation;
}

.content:empty {
    display: none;
}