:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b5b5b5;
    --accent: #ff3333;
    --accent-hover: #ff5555;
    --accent-glow: rgba(255, 51, 51, 0.3);
    --border: #404040;
    --highlight: #999999;
    color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #ffffff;
        --bg-secondary: #f8f8f8;
        --bg-tertiary: #efefef;
        --text-primary: #1a1a1a;
        --text-secondary: #444444;
        --accent: #7eb3ff;
        --accent-hover: #5a9ae8;
        --accent-glow: rgba(126, 179, 255, 0.25);
        --border: #dcdcdc;
        --highlight: #555555;
    }
}
.songtext {
	display: inline-flex;
	align-items: flex-start;
	align-content: center;
	line-height: 1;
	flex-direction: column;
}

.songtext {
	display: inline-flex;
	align-items: flex-start;
	align-content: center;
	line-height: 1;
	flex-direction: column;
}

#song {
display: flex;
text-align: left;
background-color: var(--bg-secondary);
border: 1px solid var(--accent-glow);
overflow: hidden;
box-shadow: 0 0 20px var(--accent-glow);
border-radius: 4px;
padding: 0.5em;
margin-bottom:0.5em;
align-items: left;
justify-content: left;
font-size: 14px;
}
#song span {
padding-left: 0.3em;
    
}

.songtext {
	display: inline-flex;
	align-items: flex-start;
	align-content: center;
	line-height: 1;
    
	flex-direction: column;
}
.songtext .trackname {
	margin-bottom: 0.5em;
    font-weight: bold;
    color: white;
}
html.light-mode {
    --bg-dark: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #efefef;
    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --accent: #7eb3ff;
    --accent-hover: #5a9ae8;
    --accent-glow: rgba(126, 179, 255, 0.25);
    --border: #dcdcdc;
    --highlight: #555555;
}

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

body {
    font-family: Tahoma, system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: 0;
    padding-bottom: 28px;
    font-size: 13px;
    line-height: 1.5;
    scrollbar-gutter: stable;
}

html {
    height: 100%;
}

::selection {
    background-color: white;
    color: var(--bg-dark);
}

::-moz-selection {
    background-color: white;
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.container {
    display: flex;
    align-items: flex-start;
}

.sidenav {
    position: fixed;
    left: 0;
    top: 0;
    width: 210px;
    height: calc(100vh - 22px);
    padding: 16px 12px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 12px;
    z-index: 100;
}

.sidenav p {
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidenav a {
    display: block;
    padding: 4px 0;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.sidenav a:visited {
    color: var(--text-secondary);
}

.sidenav a:hover {
    color: var(--accent);
}

.sidenav a.active,
.sidenav a.active:visited,
.sidenav a.active:hover {
    color: var(--accent);
}

html.light-mode .sidenav a.active {
    color: var(--accent);
}

.sidenav > hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.sidenav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    justify-content: center;
}

.sidenav-buttons img {
    width: 83px;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.sidenav-buttons img:hover {
    opacity: 0.8;
}

.theme-toggle {
    width: 100%;
    padding: 8px 4px;
    margin-bottom: 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent);
}

.body-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 12px;
    padding-top: 8px;
    padding-bottom: 40px;
}

.view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.view.active {
    display: block;
    opacity: 1;
}

.mainbox0 {
    max-width: 680px;
    margin: 16px 0;
    margin-left: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 0 30px var(--accent-glow);
}

html.light-mode .mainbox0 {
    border: 2px solid var(--border);
    background-color: #fafafa;
}

.titlebar {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    width: 100%;
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.title-text {
    font-family: Tahoma, system-ui, sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: var(--accent);
}

.slidecontainer {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 10px;
}

.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.color-picker-container label {
    display: none;
}

.custom-slider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 20px;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.4s;
    border: 1px solid #ff3333;
    box-shadow: 0 0 10px #ff3333;
    border-radius: 2px;
    cursor: pointer;
}

.custom-slider-range:hover {
    opacity: 1;
}

.custom-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 18px;
    background: white;
    border: 1px solid #000;
    cursor: pointer;
    border-radius: 0;
}

.custom-slider-range::-moz-range-thumb {
    width: 10px;
    height: 18px;
    background: white;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
}

.image1 {
    max-width: 200px;
    height: fit-content;
    background-color: var(--bg-secondary);
    flex-shrink: 0;
    margin: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.image1:hover {
    border-color: var(--accent);
    transition: border 0.2s ease;
}

.image1 img {
    display: block;
    width: 100%;
    height: auto;
}

.text1 {
    margin: 12px;
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.text1 p {
    margin-bottom: 12px;
}

.text1 i {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 400;
}

.text1 b,
.text1 strong {
    color: var(--accent);
    font-weight: 600;
}

.text1 u {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.gallery-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    height: fit-content;
}

.gallery-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.gallery-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 12px;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border);
}

.gallery-info h3 {
    color: var(--accent);
    font-size: 13px;
    margin: 0 0 6px 0;
    font-weight: bold;
}

.gallery-info p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.detail-container {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.detail-left {
    flex-shrink: 0;
    max-width: 300px;
}

.detail-left img {
    width: 100%;
    border: 1px solid var(--border);
    display: block;
}

.detail-right {
    flex: 1;
}

.detail-section-title {
    font-weight: bold;
    margin: 16px 16px 8px 16px;
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info-line {
    color: var(--text-primary);
    font-size: 13px;
    margin: 0 16px 12px 16px;
    line-height: 1.5;
}

.detail-info-line b {
    color: var(--accent);
    font-weight: 600;
}

.detail-description {
    padding: 0 16px 12px 16px;
}

.detail-description p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

html.light-mode .detail-section-title {
    color: var(--accent);
}

html.light-mode .detail-info-line {
    color: var(--text-primary);
}

html.light-mode .detail-info-line b {
    color: var(--accent);
    font-weight: 600;
}

html.light-mode .detail-description p {
    color: var(--text-secondary);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent);
}

.detail-gallery {
    padding: 0 16px 16px 16px;
}

.detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.detail-image-item {
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--bg-tertiary);
    transition: all 0.2s ease;
}

.detail-image-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    background: var(--bg-tertiary);
    color: var(--accent);
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
}

h6 {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: normal;
    font-style: italic;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

a {
    color: #5b8def;
    text-decoration: none;
    border-bottom: 1px solid #5b8def;
    transition: color 0.15s ease;
    cursor: pointer;
}

a:hover {
    border-bottom-color: #5b8def;
}

a:visited {
    color: #d0d0d0;
    border-bottom-color: #d0d0d0;
}

a:active {
    color: #5b8def;
}

ul {
    font-size: 12px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
}

li {
    margin: 4px 0;
}

li a {
    display: inline;
    color: #5b8def;
    text-decoration: none;
    padding: 0;
    border: none;
    padding-bottom: 2px;
    border-bottom: 1px solid #5b8def;
    transition: all 0.15s ease;
}

li a:hover {
    border-bottom-color: #5b8def;
}

li a:visited {
    color: #d0d0d0;
    border-bottom-color: #d0d0d0;
}

details {
    color: var(--text-secondary);
    padding: 0;
    margin: 8px 0;
}

details summary {
    cursor: pointer;
    color: #5b8def;
    transition: color 0.15s ease;
}

details summary:hover {
    color: var(--accent);
}

details a {
    display: inline;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0;
    margin-left: 8px;
    border: none;
}

details a:hover {
    color: var(--accent);
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    z-index: 9999;
    font-size: 11px;
    color: var(--text-secondary);
}

.taskbar-left {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid var(--border);
    height: 100%;
}

.taskbar-center {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 100%;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-left: 1px solid var(--border);
    height: 100%;
}

.taskbar-icon {
    height: 14px;
    width: 14px;
    vertical-align: middle;
}

@media (max-width: 800px) {
    .sidenav {
        width: 160px;
        padding: 12px 8px;
    }

    .body-content {
        margin-left: 160px;
        width: calc(100% - 160px);
    }

    .mainbox0 {
        max-width: 100%;
        margin: 12px 0;
    }

    .image1 {
        max-width: 150px;
        margin: 8px;
    }

    .text1 {
        margin: 8px;
        font-size: 12px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-left {
        max-width: 100%;
    }

    .detail-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .sidenav {
        width: 140px;
    }

    .body-content {
        margin-left: 140px;
        width: calc(100% - 140px);
    }

    .titlebar {
        padding: 6px 8px;
        height: 28px;
    }

    .title-text {
        font-size: 11px;
    }

    .image1 {
        margin: 6px;
        max-width: 120px;
    }

    .text1 {
        margin: 6px;
        font-size: 11px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .detail-container {
        padding: 8px;
        gap: 8px;
    }

    .detail-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}