body {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}
body {
    background-image: url('/static/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.navbar {
    background: linear-gradient(90deg, #2e7d32, #1b5e20);
}
.navbar-brand, .navbar-nav .nav-link {
    color: white !important;
}
.navbar-nav .nav-link:hover {
    color: #c8e6c9 !important;
}

.btn-success, .btn-primary {
    background-color: #2e7d32;
    border: none;
}
.btn-success:hover, .btn-primary:hover {
    background-color: #1b5e20;
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 40, 0, 0.1);
    color: #1b5e20;
}
.card-header {
    background-color: #f1f8e9;
    border-bottom: 1px solid #c5e1a5;
    border-radius: 20px 20px 0 0;
}

.profile-cover {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    height: 250px;
    background-size: cover;
    background-position: center;
}
.profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -75px;
    margin-bottom: 10px;
    z-index: 2;
    text-align: left;
    padding-left: 20px;
}
.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #2e7d32;
    background-color: white;
}
@media (max-width: 768px) {
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    .profile-avatar-wrapper {
        margin-top: -60px;
        padding-left: 15px;
    }
}

.profile-name {
    font-size: 2rem;
    margin-top: 0.5rem;
    color: #1b5e20;
}
.profile-status {
    color: #2e7d32;
    font-style: italic;
}

.small-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
s}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.social-links a {
    margin-right: 15px;
    font-size: 1.4rem;
    color: #2e7d32;
    text-decoration: none;
}
.social-links a:hover {
    color: #1b5e20;
}

.form-control {
    background-color: white;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
}
.form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(46,125,50,0.25);
}
a {
    color: #2e7d32;
}
a:hover {
    color: #1b5e20;
}

.profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .profile-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

/* ========== Аудиоплеер WMP9 ========== */
.wmp9-player {
    background: linear-gradient(135deg, #0a2f6c, #0a1f4a);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 5px rgba(0,0,0,0.2);
    margin: 10px 0;
    color: #e0e0e0;
}
.wmp9-player .player-btn {
    background: none;
    border: none;
    color: #d4eaff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 5px;
    transition: 0.2s;
}
.wmp9-player .player-btn:hover {
    color: white;
    text-shadow: 0 0 3px #7ab3ff;
}
.wmp9-player .time {
    font-size: 0.75rem;
    font-family: monospace;
    background: #00000066;
    padding: 2px 6px;
    border-radius: 4px;
}
.wmp9-player .progress-container {
    flex-grow: 1;
    background: #1e2a3a;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.wmp9-player .progress-bar {
    background: #5c9eff;
    width: 0%;
    height: 100%;
    border-radius: 3px;
    position: relative;
}
.wmp9-player .progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #c0e0ff;
    border-radius: 50%;
    box-shadow: 0 0 4px white;
}
.wmp9-player .volume {
    display: flex;
    align-items: center;
    gap: 5px;
}
.wmp9-player .volume-slider {
    width: 60px;
    background: #1e2a3a;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}
/* Стикеры */
.sticker-selector img {
    transition: transform 0.2s;
}
.sticker-selector img:hover {
    transform: scale(1.1);
}
/* Верификация и supporter */
.bi-patch-check-fill {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}
.badge.bg-warning.text-dark {
    background: linear-gradient(45deg, #ffd966, #ffb347);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.7; }
}
.profile-username {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
/* Plyr аудиоплеер */
.plyr-audio {
    width: 100%;
    border-radius: 8px;
}
.plyr-audio + .text-muted {
    font-size: 0.85rem;
}
/* Центрирование и масштабирование изображений в постах без обрезки */
.post-image {
    display: block;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}
/* Для изображений в карусели (если несколько) */
.post-images-row .post-image {
    margin: 0 auto;
}
