.main {
    font-size: 0.8em;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar styles */
.content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.top-bar {
    width: 100%;
}

/* Changelog Header */
.changelog-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.changelog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    background-clip: text;
}

.changelog-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.error {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 1rem;
}

/* Version Container */
.version-container {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 42px 21px rgba(255, 255, 255, 0.015);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.version-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
}

.version-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25),
        transparent,
        rgba(255, 255, 255, 0.1)
    );
}

.version-container:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 42px 21px rgba(255, 255, 255, 0.02);
}

.version-container.latest {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.15);
    box-shadow: 
        0 8px 32px rgba(74, 222, 128, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(74, 222, 128, 0.1),
        inset 0 0 42px 21px rgba(74, 222, 128, 0.015);
}

.version-container.latest:hover {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 
        0 12px 40px rgba(74, 222, 128, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(74, 222, 128, 0.15),
        inset 0 0 42px 21px rgba(74, 222, 128, 0.02);
}

/* Version Layout */
.version-layout {
    display: flex;
    padding: 1rem 1.6rem;
    gap: 0.5rem;
}

.version-left {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 165px;
}

.version-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.247);
}

.version-right {
    flex: 1;
}

.version-date-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.version-tags-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Version Header */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.version-header:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Toggle Icon Animation */
.toggle-icon svg {
    transition: transform 0.3s ease;
}

.version-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.version-number {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.version-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.latest-badge {
    border: 1px solid rgba(74, 222, 128, 0.48);
    background: rgba(74, 222, 128, 0.16);
    color: #d9ffe7;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Changelog Tags */
.changelog-tag {
    --tag-bg: rgba(255, 255, 255, 0.1);
    --tag-border: rgba(255, 255, 255, 0.18);
    --tag-text: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    min-height: 24px;
    padding: 0.34rem 0.62rem;
    border: 1px solid var(--tag-border);
    border-radius: 999px;
    background: var(--tag-bg);
    color: var(--tag-text);
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
    margin-top: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tag-fixed {
    --tag-bg: rgba(244, 127, 117, 0.16);
    --tag-border: rgba(244, 127, 117, 0.42);
    --tag-text: #ffdeda;
}

.tag-improved {
    --tag-bg: rgba(240, 201, 107, 0.16);
    --tag-border: rgba(240, 201, 107, 0.42);
    --tag-text: #fff2c8;
}

.tag-new {
    --tag-bg: rgba(84, 214, 179, 0.16);
    --tag-border: rgba(84, 214, 179, 0.44);
    --tag-text: #ddfff5;
}

.tag-patched {
    --tag-bg: rgba(163, 149, 255, 0.16);
    --tag-border: rgba(163, 149, 255, 0.4);
    --tag-text: #ebe8ff;
}

/* Version Content */
.version-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.version-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.version-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

/* Changelog Sections */
.changelog-section {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.changelog-section:first-child {
    border-top: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.section-icon {
    font-size: 1.2rem;
}

.section-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-items li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.section-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* Sub-items styling */
.sub-items {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.sub-items li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-size: 0.9em;
}

.sub-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* Section-specific styles */
.changelog-section.added .section-items li::before {
    background: #4ade80;
}

.changelog-section.changed .section-items li::before {
    background: #3b82f6;
}

.changelog-section.fixed .section-items li::before {
    background: #f59e0b;
}

.changelog-section.removed .section-items li::before {
    background: #ef4444;
}

/* Text formatting */
.section-items strong {
    color: #ffffff;
    font-weight: 600;
}

.section-items em {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.section-items code {
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

footer {
    font-size: 0.8em;
}

body.dtemp-preview #changelog-container {
    --changelog-latest-bg: linear-gradient(135deg, rgba(224, 245, 238, 0.86), rgba(203, 232, 229, 0.72));
    --changelog-latest-bg-hover: linear-gradient(135deg, rgba(213, 242, 234, 0.96), rgba(193, 225, 222, 0.82));
    --changelog-latest-border: rgba(31, 132, 112, 0.42);
    --changelog-latest-shadow: 0 14px 30px rgba(31, 132, 112, 0.12);
    width: min(1180px, 100%);
    margin: 0 auto;
}

body.dtemp-preview.dtemp-preview-modules-dark #changelog-container {
    --changelog-latest-bg: linear-gradient(135deg, rgba(32, 82, 74, 0.72), rgba(20, 42, 45, 0.82));
    --changelog-latest-bg-hover: linear-gradient(135deg, rgba(38, 94, 85, 0.82), rgba(26, 52, 55, 0.9));
    --changelog-latest-border: rgba(84, 214, 179, 0.52);
    --changelog-latest-shadow: 0 16px 32px rgba(6, 24, 25, 0.22);
}

body.dtemp-preview .changelog-header {
    margin: 16px 0;
    padding: 20px;
    border: 1px solid var(--preview-module-border);
    border-radius: 8px;
    background: var(--preview-module-bg);
    box-shadow: var(--preview-module-shadow);
    text-align: left;
}

body.dtemp-preview .changelog-header h1 {
    background: none;
    color: var(--preview-module-text);
    -webkit-text-fill-color: currentColor;
}

body.dtemp-preview .changelog-header p,
body.dtemp-preview .loading {
    color: var(--preview-module-muted);
}

body.dtemp-preview .version-container {
    border: 1px solid var(--preview-module-border);
    border-radius: 8px;
    background: var(--preview-module-bg);
    box-shadow: var(--preview-module-shadow);
    color: var(--preview-module-text);
}

body.dtemp-preview .version-container::before,
body.dtemp-preview .version-container::after {
    display: none;
}

body.dtemp-preview .version-container:hover {
    border-color: var(--preview-accent-border);
    background: var(--preview-module-bg-hover);
    box-shadow: var(--preview-module-shadow);
}

body.dtemp-preview .version-container.latest {
    border-color: var(--changelog-latest-border);
    background: var(--changelog-latest-bg);
    box-shadow: var(--preview-module-shadow), var(--changelog-latest-shadow);
}

body.dtemp-preview .version-container.latest:hover {
    background: var(--changelog-latest-bg-hover);
    border-color: var(--changelog-latest-border);
    box-shadow: var(--preview-module-shadow), var(--changelog-latest-shadow);
}

body.dtemp-preview .latest-badge {
    border-color: var(--preview-accent-border);
    background: var(--preview-accent-bg);
    color: var(--preview-module-text);
}

body.dtemp-preview .changelog-tag {
    box-shadow: none;
}

body.dtemp-preview .tag-new {
    --tag-bg: rgba(39, 157, 132, 0.15);
    --tag-border: rgba(39, 157, 132, 0.38);
    --tag-text: #075345;
}

body.dtemp-preview .tag-improved {
    --tag-bg: rgba(201, 143, 45, 0.15);
    --tag-border: rgba(161, 105, 18, 0.36);
    --tag-text: #5b3d08;
}

body.dtemp-preview .tag-fixed {
    --tag-bg: rgba(196, 70, 70, 0.13);
    --tag-border: rgba(168, 55, 55, 0.34);
    --tag-text: #6b1010;
}

body.dtemp-preview .tag-patched {
    --tag-bg: rgba(91, 93, 153, 0.13);
    --tag-border: rgba(91, 93, 153, 0.34);
    --tag-text: #34365f;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-new {
    --tag-bg: rgba(84, 214, 179, 0.16);
    --tag-border: rgba(84, 214, 179, 0.42);
    --tag-text: #ddfff5;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-improved {
    --tag-bg: rgba(240, 201, 107, 0.16);
    --tag-border: rgba(240, 201, 107, 0.42);
    --tag-text: #fff2c8;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-fixed {
    --tag-bg: rgba(244, 127, 117, 0.16);
    --tag-border: rgba(244, 127, 117, 0.42);
    --tag-text: #ffdeda;
}

body.dtemp-preview.dtemp-preview-modules-dark .tag-patched {
    --tag-bg: rgba(163, 149, 255, 0.16);
    --tag-border: rgba(163, 149, 255, 0.4);
    --tag-text: #ebe8ff;
}

body.dtemp-preview .version-header:hover {
    background: var(--preview-module-bg-hover);
}

body.dtemp-preview .version-number,
body.dtemp-preview .section-title,
body.dtemp-preview .section-items strong {
    color: var(--preview-module-text);
}

body.dtemp-preview .version-date,
body.dtemp-preview .section-items li,
body.dtemp-preview .sub-items li,
body.dtemp-preview .section-items em {
    color: var(--preview-module-muted);
}

body.dtemp-preview .version-divider,
body.dtemp-preview .changelog-section {
    border-color: var(--preview-module-divider);
}

body.dtemp-preview .section-items li::before {
    background: var(--preview-module-muted);
}

body.dtemp-preview .section-items code {
    background: var(--preview-control-bg);
    color: var(--preview-module-text);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .content {
        width: 95% !important;
        padding: 0 10px;
    }
    
    .changelog-header {
        margin: 1rem 0 2rem 0;
        padding: 1.5rem;
    }
    
    .changelog-header h1 {
        font-size: 2rem;
    }

    .version-date {
        line-height: normal;
    }
    
    .version-layout {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .version-left {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        max-width: fit-content;
        gap: 1rem;
    }

    .version-divider {
        display: none;
    }
    
    .version-number {
        font-size: 1.2rem;
    }
    
    .changelog-section {
        padding: 1rem 1.5rem;
    }
    
    .section-items li {
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }
}