*, ::before, ::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
}

body {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 11px;
    background-color: #8E9AAF;
}

P, .changelog-list {
    line-height: 1.5;
}

.info-row audio {
    width: 0;
    flex-grow: 1;
    min-width: 150px;
}

.paragraph {
    text-indent: 0px;
}

.inside-list {
    list-style: inside;
}

.flex {
    display: flex;
    height: 100%;
}

.site-container {
    width: 100%;
    height: 100%;
    max-width: 934px;
    margin: 0 auto;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    background-image: linear-gradient(165deg, #1A1C20 0%, #323944 15%, #515B6B 100%);
    box-shadow: inset 1px 0 0 rgb(255 255 255 / 25%), inset -1px 0 0 rgb(255 255 255 / 25%);
    display: flex;
    flex-direction: column;
}

.header-navigation {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(0 0 0 / 0%);
    color: #FFF;
    padding: 5px 10px;
}

.slogan {
    font-style: normal;
    opacity: 1;
}

.top-navigation-links {
    height: 100%;
}

.top-navigation-links li {
    height: 100%;
}

.top-navigation-links li:not(:last-child) {
    border-right: 1px solid rgba(200, 200, 200, 0.25);
}

.top-navigation-links a {
    display: flex; 
    height: 100%; 
    align-items: center;
}

.navigation-links,
.top-navigation-links {
    display: flex;
    list-style: none;
}

.navigation-links li,
.top-navigation-links li {
    padding: 0 8px;
}

.navigation-links a,
.top-navigation-links a {
    color: inherit;
    text-decoration: none;
}

.navigation-links a:hover,
.top-navigation-links a:hover {
    text-decoration: underline;
}

.navigation-link {
    color: inherit;
    text-decoration: none;
}

.navigation-link:hover {
    text-decoration: underline;
}

.header {
    padding: 22px;
}

.logo {
    width: 180px;
    height: 60px;
    display: block;
    background-size: 100% 100%;
    background-image: url('/static/assets/img/logo.png');
}

.site-content-container {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #FFF;
    /*background-image: linear-gradient(to bottom, rgb(255 255 255), rgb(228 228 228));*/
    border-top: 1px solid rgb(0 0 0 / 75%);
    box-shadow: 0 -1px 0 rgb(255 255 255 / 50%);
    flex-grow: 1;
    overflow-x: hidden;
}

.site-content {
    padding: 10px;
    overflow-x: hidden;
    height: 100%;
}

.homepage {
    padding: 0;
    width: 634px;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.homepage-section-header {
    width: 100%;
    display: inline-block;
    font-weight: 400;
    font-size: 18px;
    font-family: "Franklin Gothic Medium", "Franklin Gothic", Verdana, sans-serif;
    letter-spacing: -0.5px;
    color: #323944;    
    margin-top: 15px;
}

.homepage-popular-downloads {
    flex-basis: 45%;
}

.clickable-card {
    position: relative;
    width: 100%;
    height: 100px;
    background: #e1e1e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.2);
    transition: background 0.1s;
    text-align: center;
}

.clickable-card:hover {
    background-color: #d1d1d1;
    cursor: pointer; 
}

.main-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.main-link {
    font-size: 14px;
    font-weight: bold;
    color: #323944;
    text-decoration: none;
    z-index: 2;
}

.main-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.alert {
    display: flex;
    align-items: center;
    background-color: rgb(255 255 255);
    border: 1px solid rgb(0 0 0);
    border-radius: 6px;
    overflow: hidden;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.alert::before {
    content: "";
    display: inline-block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin-right: 4px;
}

.alert.warning {
    border-color: #dbcfb7;
    background-color: #FFFFE1;
}

.alert.warning::before {
    background-image: url('/static/assets/img/warning.png');
}

.site-footer-container {
    padding: 6px 8px;
    background-color: #ffffff;/*rgb(228 228 228);*/
}

.footer-sub-text {
    font-size: 10px;
    color: #666666;
    text-align: center;
    margin-bottom: 4px;
}

.site-footer {
    color: #333;
    padding: 6px 8px;
    text-align: center;
    border: 1px solid rgb(0 0 0 / 50%);
    background-color: rgb(231, 231, 231);
    background-image: linear-gradient(to bottom, rgb(235, 235, 235), rgb(207, 207, 207));
    box-shadow: inset 0 1px 0 rgb(255 255 255);
    font-weight: 600;
}

.product-table-of-contents {
    flex-basis: 15%;
}

.product-page-content {
    flex-basis: 80%;
}

.table-of-contents-label {
    font-size: 11px;
}

.table-of-contents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin: 2px 0;
    display: flex;
    align-items: center;
    padding: 2px 5px;
    height: 24px;
}

.table-of-contents li:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.table-of-contents li::before {
    content: "";
    display: inline-block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    
    margin-right: 8px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.table-of-contents a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.clean-form {
    width: 100%;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group label {
    font-weight: bold;
    color: #323944;
    margin-bottom: 3px;
    font-size: 11px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    box-sizing: border-box; 
    border: 1px solid #bdbebd;
    padding: 3px 5px;
    height: 24px;
    font-size: 11px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #67668e;
}

.form-group textarea {
    resize: vertical;
}

.form-row-compact {
    display: flex;
    gap: 15px;
}
.form-row-compact .form-group {
    flex: 1;
}

.form-actions {
    /*margin-top: 10px;
    padding-top: 10px;*/
    gap: 5px;
}

.submit-button {
    padding: 8px 8px;
    border: 1px solid #bdbebd;
    cursor: pointer;
    transition: background 0.1s;
    border-radius: 4px;
}

.submit-button:hover {
    background-color: #d1d1d1;
}

.right-sidebar {
    display: flex;
    flex-basis: 20%;
    border-left: 1px dotted #ccc;
    border-right: none;
    padding-left: 15px;
    flex-direction: column;
    gap: 15px;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.checkbox-group textarea {
    flex: 1;
    width: 100%;
    margin: 0;
}

.checkbox-group label {
    font-weight: normal;
    cursor: pointer;
}

.accent {
    color: #323944;
}

.checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    aspect-ratio: 1;
    border: 1px solid #bdbebd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    display: inline-grid;
    place-items: center;
    line-height: 0;
}

.checkbox:focus {
    outline: none; 
}

.checkbox:checked {
    border-color: #323944; 
}

.checkbox:not(:checked) {
    border-color: #bdbebd;
}

.checkbox:checked::before {
    content: "✓";
    color: #323944;
    font-size: 13px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.contents-current {
    background-color: #f5f5f5;
}

.news-card {
    background: #ffffff;
    border: 1px solid #bdbebd;
    padding: 5px;
    max-width: 350px;
}

.news-card p {
    white-space: pre-wrap;
}

.news-card h1 {
    text-align: center;
}

.news-span-star {
    color: #323944;
}

.news-link {
    text-decoration: underline;
    color: #323944;
}

.separator {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 5px 0;
}

.news-card-footer {
    text-align: right;
}

.news-h1-pinned {
    color: #323944 !important;
}

.news-h1-pinned::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 2px;
    background-image: url('/static/assets/img/pin.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.profile-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 5px;
}

.page-block {
    background: #ffffff;
    border: 1px solid #bdbebd;
    padding: 10px;
    margin-bottom: 15px;
}

.profile-left {
    flex-basis: 180px;
    flex-shrink: 0;
}

.profile-img {
    width: 100%;
    display: block;
    border: 1px solid #eee;
}

.btn-edit, .btn-msg {
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    border: 1px solid #bdbebd;
    background-color: #f1f1f1;
    color: #323944;
    text-decoration: none;
    font-size: 11px;
    cursor: pointer;
}

.btn-edit:hover, .btn-msg:hover {
    background-color: #d1d1d1;
}

.profile-right {
    flex-grow: 1;
}

.profile-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 16px;
    color: #323944;
    margin-bottom: 2px;
}

.profile-nick {
    font-weight: normal;
    font-size: 11px;
    color: #666;
}

.profile-status {
    color: #515B6B;
    margin-bottom: 5px;
}

.profile-info-rows {
    margin-top: 10px;
}

.info-row {
    display: flex;
    padding: 3px 0;
}

.info-row .value {
    min-width: 0; 
    word-break: break-all;
    hyphens: auto;
}

.info-row .label {
    flex-shrink: 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px dotted #ddd;
}

.label {
    width: 135px;
    color: #666;
    font-weight: bold;
}

.value {
    color: #323944;
}

.value a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    display: inline-block;
    line-height: 1;
}

.wall-title {
    font-size: 11px;
    font-weight: bold;
    color: #FFF;
    background: #515B6B;
    padding: 3px 8px;
    margin: -10px -10px 10px -10px;
}

.post {
    padding: 10px 0;
}

.post:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.post-avatar {
    width: 32px;
    height: 32px;
    float: left;
    margin-right: 10px;
    border: 1px solid #bdbebd;
}

.post-author {
    font-weight: bold;
    color: #323944;
}

.post-date {
    font-size: 9px;
    color: #999;
    margin-left: 5px;
}

.post-content {
    margin-top: 5px;
    padding-left: 42px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.post-content a {
    text-decoration: underline;
    cursor: pointer;
    color: #323944;
}

.wall-block .form-actions {
    display: none;
}

.wall-block form:focus-within .form-actions,
.wall-block .form-actions:hover {
    display: block;
}

.like-button,
.share-button {
    width: 10px;
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}

.agree-button,
.delete-button,
.edit-button,
.plus-button {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    overflow: hidden;
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}

.agree-button:hover,
.delete-button:hover,
.edit-button:hover,
.like-button:hover,
.share-button:hover,
.plus-button:hover {
    opacity: 1;
    cursor: pointer;
}

.agree-button {
    background-image: url('/static/assets/img/agree.png');
}

.delete-button {
    background-image: url('/static/assets/img/delete.png');
}

.edit-button {
    background-image: url('/static/assets/img/edit.png');
}

.plus-button {
    background-image: url('/static/assets/img/plus.png');
}

.like-button {
    background-image: url('/static/assets/img/like.png'); 
}

.share-button {
    background-image: url('/static/assets/img/repost.png'); 
}

.like-button.liked {
    background-image: url('/static/assets/img/like-filled.png') !important; 
}

.content-profile::before {
    background-image: var(--user-avatar);
}

.content-about::before {
    background-image: url("/static/assets/img/about.png");
}

.content-feed::before {
    background-image: url("/static/assets/img/feed.png");
}

.content-home::before {
    background-image: url("/static/assets/img/home.png");
}

.content-friends::before {
    background-image: url("/static/assets/img/friends.png");
}

.content-login::before {
    background-image: url("/static/assets/img/login.png");
}

.content-register::before {
    background-image: url("/static/assets/img/register.png");
}

.content-settings::before {
    background-image: url("/static/assets/img/settings.png");
}

.content-messages::before {
    background-image: url("/static/assets/img/messages.png");
}

.content-audios::before {
    background-image: url("/static/assets/img/audios.png");
}

.content-adminshit::before {
    background-image: url("/static/assets/img/adminshit.png");
}

.content-draw::before {
    background-image: url("/static/assets/img/draw.png");
}

.form-actions-profile {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-top: -10px;
    gap: 20px;
}

.post-form:focus-within .form-actions-profile,
.post-form:has(#post-input:not(:placeholder-shown)) .form-actions-profile {
    display: flex !important;
}

.form-actions-profile input[type="file"] {
    font-size: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.submit-button {
    white-space: nowrap;
    padding: 7px 15px;
    cursor: pointer;
}

.banner-link {
    display: block;
    height: 60px;
    aspect-ratio: 477 / 200;
    background-image: url('/static/assets/img/banner.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    margin-right: 20px;
}

.important-shit {
    border: 1px solid #515b6b;
    border-bottom: 1px solid !important;
    background-color: #cbced3;
    padding: 4px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #515b6b;
}

.player-wrap {
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
    overflow: hidden !important;
    vertical-align: middle !important;
    line-height: 1.25;
    white-space: nowrap;
    min-width: 0;
}

.song-title {
    display: block !important;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-title a {
    display: inline !important; 
    white-space: nowrap;
}

.p-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 5px !important;
    cursor: pointer !important;
    color: #323944 !important;
    background-color: #f1f1f1 !important;
    border: 1px solid #bdbebd !important;
    padding: 0 !important; 
    height: 20px !important; 
    aspect-ratio: 1 / 1 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    user-select: none !important;
    line-height: 1 !important;
}

.p-btn:hover {
    background-color: #d1d1d1 !important;
}