/**
 * Embercram - ВК + Instagram + Frutiger Aero
 * Оптимизировано для Bootstrap 3 и старых браузеров
 * v0.0.4
 */

/* ================================
   CSS Variables (с fallback)
   ================================ */
html {
    height: 100%;
}

body {
    font-family: Tahoma, 'Trebuchet MS', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #f0f2f5;
    padding-top: 52px;
    margin: 0;

    /* Sticky footer */
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    min-height: 100%;
}

.container {
    width: auto !important;
    max-width: 1100px;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    body {
        padding-top: 42px;
        /* Header height on mobile */
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.content-wrapper {
    flex: 1 0 auto;
    -webkit-flex: 1 0 auto;
}

a {
    color: #45668e;
}

a:hover,
a:focus {
    color: #3a5778;
    text-decoration: underline;
}

/* ================================
   Navbar Spacer
   ================================ */
.navbar-spacer {
    height: 52px;
}

/* ================================
   NAVBAR - ВК + Aero глянец
   ================================ */
.navbar-aero {
    min-height: 52px;
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid #2d5070;
    border-radius: 0;

    /* Градиент как в Windows Aero + ВК */
    background: #5d8cb3;
    background: -webkit-linear-gradient(top, #6d9cc3 0%, #5d8cb3 30%, #4d7ca3 70%, #3d6c93 100%);
    background: linear-gradient(180deg, #6d9cc3 0%, #5d8cb3 30%, #4d7ca3 70%, #3d6c93 100%);

    /* Глянцевый блик */
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 5px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 5px rgba(0, 0, 0, 0.2);
}

.navbar-aero .navbar-brand {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.navbar-aero .navbar-brand:hover,
.navbar-aero .navbar-brand:focus {
    color: #fff;
}

.navbar-aero .navbar-brand .fa {
    color: #ffcc00;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-aero .navbar-nav>li>a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    padding: 16px 14px;
}

.navbar-aero .navbar-nav>li>a:hover,
.navbar-aero .navbar-nav>li>a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-aero .navbar-nav>.active>a,
.navbar-aero .navbar-nav>.active>a:hover,
.navbar-aero .navbar-nav>.active>a:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.15);
}

.navbar-aero .navbar-nav>.open>a,
.navbar-aero .navbar-nav>.open>a:hover,
.navbar-aero .navbar-nav>.open>a:focus {
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
}

/* Dropdown меню */
.navbar-aero .dropdown-menu {
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-aero .dropdown-menu>li>a {
    padding: 10px 15px;
    color: #555;
}

.navbar-aero .dropdown-menu>li>a:hover,
.navbar-aero .dropdown-menu>li>a:focus {
    background: #f5f8fa;
    color: #45668e;
}

.navbar-aero .dropdown-menu>li>a .fa {
    width: 18px;
    margin-right: 5px;
    color: #888;
}

.navbar-aero .dropdown-menu .divider {
    margin: 5px 0;
}

/* Кнопка регистрации в навбаре */
.btn-nav-register {
    background: #5cb85c;
    background: -webkit-linear-gradient(top, #6ec96e 0%, #5cb85c 50%, #4cae4c 100%);
    background: linear-gradient(180deg, #6ec96e 0%, #5cb85c 50%, #4cae4c 100%);
    color: #fff !important;
    padding: 8px 15px !important;
    margin: 10px 0 10px 10px;
    border-radius: 0;
    font-weight: bold;
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.btn-nav-register:hover,
.btn-nav-register:focus {
    background: #6ec96e;
    background: -webkit-linear-gradient(top, #7ed17e 0%, #6ec96e 50%, #5cb85c 100%);
    background: linear-gradient(180deg, #7ed17e 0%, #6ec96e 50%, #5cb85c 100%);
    color: #fff !important;
    text-decoration: none;
}

/* Mobile toggle */
.navbar-aero .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-aero .navbar-toggle:hover,
.navbar-aero .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.15);
}

.navbar-aero .navbar-toggle .icon-bar {
    background: #fff;
}

/* ================================
   КНОПКИ - Глянец Aero
   ================================ */
.btn {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    border-radius: 0;
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid;
    padding: 7px 16px;
}

/* Primary - ВК синий */
.btn-primary {
    background: #5181b8;
    color: #fff;
    border-color: #5181b8;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #5b88bd;
    border-color: #5b88bd;
    color: #fff;
}

.btn-primary:active,
.btn-primary.active {
    background: #4477aa;
    background: -webkit-linear-gradient(top, #3366aa 0%, #4477aa 100%);
    background: linear-gradient(180deg, #3366aa 0%, #4477aa 100%);
    -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Success - Aero зелёный */
.btn-success {
    background: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
}

.btn-success:hover,
.btn-success:focus {
    background: #47a447;
    border-color: #398439;
    color: #fff;
}

/* Warning - Instagram оранжевый */
.btn-warning {
    background: #f0ad4e;
    background: -webkit-linear-gradient(top, #f5c06e 0%, #f0ad4e 50%, #eea236 100%);
    background: linear-gradient(180deg, #f5c06e 0%, #f0ad4e 50%, #eea236 100%);
    border-color: #eea236 #e89a2c #e09020;
}

/* Danger */
.btn-danger {
    background: #d9534f;
    background: -webkit-linear-gradient(top, #e56b67 0%, #d9534f 50%, #d43f3a 100%);
    background: linear-gradient(180deg, #e56b67 0%, #d9534f 50%, #d43f3a 100%);
    border-color: #d43f3a #c9302c #b52b27;
}

/* Default - серый */
.btn-default {
    background: #f0f2f5;
    border-color: #d7d8db;
    color: #555;
    text-shadow: none;
}

.btn-default:hover,
.btn-default:focus {
    background: #f5f5f5;
    background: -webkit-linear-gradient(top, #f5f5f5 0%, #eee 50%, #e0e0e0 100%);
    background: linear-gradient(180deg, #f5f5f5 0%, #eee 50%, #e0e0e0 100%);
    color: #333;
}

/* Большая кнопка */
.btn-lg {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 0;
}

/* ================================
   ФОРМЫ
   ================================ */
.form-control {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    height: 30px;
    border: 1px solid #bbb;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-control:focus {
    border-color: #5d8cb3;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 6px rgba(93, 140, 179, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 6px rgba(93, 140, 179, 0.3);
}

label {
    font-weight: bold;
    font-size: 12px;
    color: #555;
}

/* ================================
   PANELS / CARDS
   ================================ */
.panel {
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.panel-default {
    border-color: #ddd;
}

.panel-default>.panel-heading {
    background: #f8f8f8;
    background: -webkit-linear-gradient(top, #fcfcfc 0%, #f5f5f5 100%);
    background: linear-gradient(180deg, #fcfcfc 0%, #f5f5f5 100%);
    border-color: #e5e5e5;
    color: #555;
    font-weight: bold;
    font-size: 12px;
}

.panel-primary>.panel-heading {
    background: #5588bb;
    background: -webkit-linear-gradient(top, #6699cc 0%, #5588bb 100%);
    background: linear-gradient(180deg, #6699cc 0%, #5588bb 100%);
}

/* ================================
   WELLS & JUMBOTRON
   ================================ */
.well {
    background: #fff;
    border: 1px solid #d7d8db;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.jumbotron {
    background: #e8f0f8;
    background: -webkit-linear-gradient(top, #f0f5fa 0%, #e0eaf5 100%);
    background: linear-gradient(180deg, #f0f5fa 0%, #e0eaf5 100%);
    border-radius: 8px;
}

/* ================================
   HERO SECTION
   ================================ */
/* Hero Section removed (unused) */

/* ================================
   FEATURE CARDS
   ================================ */
/* Feature Cards removed (unused) */

/* ================================
   POST CARD
   ================================ */
.post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 15px;
    box-shadow: none;
}

.post-header {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 0;
    float: left;
    margin-right: 12px;
}

.post-author-info {
    overflow: hidden;
}

.post-author-name {
    font-size: 13px;
    font-weight: bold;
    color: #45668e;
}

.post-author-name:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 11px;
    color: #999;
}

.post-content {
    padding: 0 15px 15px;
    font-size: 14px;
    line-height: 1.5;
}

.post-content:empty {
    display: none;
}

.post-image {
    max-width: 100%;
    display: block;
}

.post-actions {
    padding: 10px 15px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.post-action {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 5px;
    font-size: 12px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0;
}

.post-action:hover {
    background: #f0f0f0;
    color: #45668e;
}

.post-action.liked {
    color: #d9534f;
}

.post-action .fa {
    margin-right: 4px;
}

/* ================================
   PROFILE
   ================================ */
/* Profile styles removed (unused) */

/* ================================
   AUTH PAGES
   ================================ */
/* Auth Pages removed (unused) */

/* ================================
   ALERTS, BADGES, LABELS
   ================================ */
.alert {
    font-size: 13px;
    border-radius: 0;
}

.badge,
.label {
    border-radius: 0;
    font-weight: bold;
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #dae1e8;
    background: transparent;
    font-size: 11px;
    color: #828282;
    flex-shrink: 0;
    -webkit-flex-shrink: 0;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #2a5885;
    margin: 0 10px;
}

.footer-copy {
    margin-top: 5px;
}

.footer-gen {
    color: #b2b2b2;
    margin-top: 3px;
}

.footer-stats {
    margin-bottom: 5px;
}

.footer-motd {
    margin-bottom: 12px;
    padding: 8px 15px;
    display: inline-block;
}

.footer-motd.motd-info {
    color: #5181b8;
}

.footer-motd.motd-success {
    color: #5cb85c;
}

.footer-motd.motd-warning {
    color: #f0ad4e;
}

.footer-motd.motd-danger {
    color: #d9534f;
}

.footer-motd .fa {
    margin-right: 5px;
}

/* ================================
   VERSION INFO
   ================================ */
.version-info {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 20px;
}

/* ================================
   COMMENTS
   ================================ */
.comment {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    float: left;
    margin-right: 10px;
}

.comment-body {
    overflow: hidden;
}

.comment-author {
    font-size: 12px;
    font-weight: bold;
    color: #45668e;
}

.comment-time {
    font-size: 11px;
    color: #aaa;
    margin-left: 8px;
}

.comment-text {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
}

.comment-actions {
    margin-top: 5px;
}

.comment-action {
    font-size: 11px;
    color: #999;
    margin-right: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.comment-action:hover {
    color: #45668e;
}

/* ================================
   UTILITIES
   ================================ */
.text-muted {
    color: #999 !important;
}

.clearfix:after {
    content: '';
    display: table;
    clear: both;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 767px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-section {
        padding: 40px 15px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-logo .fa {
        font-size: 36px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .profile-main {
        text-align: center;
        padding: 0 10px 15px;
    }

    .profile-avatar {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }

    .profile-info {
        padding-top: 0;
    }

    .profile-info .pull-right {
        float: none !important;
        margin-top: 10px;
        display: block;
    }

    .profile-info .pull-right .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .profile-stats {
        text-align: center;
        display: flex;
        justify-content: space-around;
    }

    .profile-name {
        font-size: 22px;
    }

    .footer-stats {
        display: block;
        margin-bottom: 15px;
    }

    .footer-stats .stat-item {
        display: inline-block;
        margin: 5px 8px;
    }

    /* Формы на мобилках */
    .form-control {
        font-size: 16px;
        /* Предотвращает зум на iOS */
    }

    .post-actions .pull-right {
        float: none !important;
        display: block;
        margin-top: 5px;
        border-top: 1px solid #f0f0f0;
        padding-top: 5px;
    }

    /* Навигация */
    .navbar-aero .navbar-nav {
        margin: 0;
        background: rgba(0, 0, 0, 0.05);
    }

    .navbar-aero .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* ================================
   FOOTER STATS
   ================================ */
.footer-stats {
    margin-bottom: 10px;
}

.footer-stats .stat-item {
    display: inline-block;
    margin: 0 12px;
    font-size: 11px;
    color: #666;
}

.footer-stats .stat-item .fa {
    margin-right: 4px;
}

.footer-stats .text-success {
    color: #5cb85c !important;
}

.footer-copy {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px;
}

.footer-gen {
    font-size: 10px;
    color: #aaa;
    margin: 0;
}

/* ================================
   MOTD BANNER
   ================================ */
.motd-banner {
    margin: 0;
    padding: 12px 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 13px;
}

.motd-banner .container {
    max-width: 1000px;
}

.motd-banner .fa {
    margin-right: 8px;
}

/* Info MOTD - синий Aero */
.motd-banner.alert-info {
    background: #d9edf7;
    background: -webkit-linear-gradient(top, #e8f4fc 0%, #d9edf7 100%);
    background: linear-gradient(180deg, #e8f4fc 0%, #d9edf7 100%);
    border-color: #bce8f1;
    color: #31708f;
}

/* Success MOTD - зелёный */
.motd-banner.alert-success {
    background: #dff0d8;
    background: -webkit-linear-gradient(top, #e8f8e8 0%, #dff0d8 100%);
    background: linear-gradient(180deg, #e8f8e8 0%, #dff0d8 100%);
    border-color: #d6e9c6;
    color: #3c763d;
}

/* Warning MOTD - жёлтый */
.motd-banner.alert-warning {
    background: #fcf8e3;
    background: -webkit-linear-gradient(top, #fffdf5 0%, #fcf8e3 100%);
    background: linear-gradient(180deg, #fffdf5 0%, #fcf8e3 100%);
    border-color: #faebcc;
    color: #8a6d3b;
}

/* Danger MOTD - красный */
.motd-banner.alert-danger {
    background: #f2dede;
    background: -webkit-linear-gradient(top, #f8e8e8 0%, #f2dede 100%);
    background: linear-gradient(180deg, #f8e8e8 0%, #f2dede 100%);
    border-color: #ebccd1;
    color: #a94442;
}

/* Photo Filters removed (unused) */

/* ================================
   MARKDOWN STYLING
   ================================ */
.markdown-body {
    word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #45668e;
}

.markdown-body h1 {
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.markdown-body h2 {
    font-size: 1.3em;
}

.markdown-body h3 {
    font-size: 1.1em;
}

.markdown-body p {
    margin-bottom: 10px;
}

.markdown-body blockquote {
    padding: 5px 15px;
    color: #777;
    border-left: 4px solid #d0e0f0;
    background: #f8fafd;
    margin: 10px 0;
}

.markdown-body code {
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

.markdown-body pre {
    display: block;
    padding: 10px;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 25px;
    margin-bottom: 10px;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 4px;
}

/* Repost specific styling */
.post-is-repost {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.repost-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Image Filters removed (unused) */

/* ================================
   MUSIC PAGE STYLES
   ================================ */
.vk-panel {
    background: white;
    border: 1px solid #d7d8db;
    border-radius: 0;
}

.vk-panel-header {
    background: #f0f2f5;
    padding: 10px 12px;
    border-bottom: 1px solid #e7e8ec;
    font-size: 12px;
    font-weight: bold;
    color: #45668e;
}

/* Track Items */
.track-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
}

.track-item:hover {
    background: #f7f8fa;
}

.track-item.playing {
    background: #e7f0fa;
}

.track-cover {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-cover-placeholder {
    width: 100%;
    height: 100%;
    background: #e7e8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #939393;
}

.track-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.track-cover:hover .track-play-overlay {
    opacity: 1;
}

.track-play-overlay .fa {
    color: white;
    font-size: 20px;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 13px;
    font-weight: bold;
    color: #2a5885;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 11px;
    color: #939393;
}

.track-duration {
    font-size: 11px;
    color: #939393;
    margin: 0 15px;
}

.track-actions {
    display: flex;
    gap: 5px;
}

.track-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d8db;
    background: white;
    color: #5181b8;
    text-decoration: none;
    cursor: pointer;
}

.track-btn:hover {
    background: #f0f2f5;
    text-decoration: none;
}

.track-btn.track-added {
    background: #5181b8;
    color: white;
    border-color: #5181b8;
}

.track-btn.track-remove {
    background: #e64646;
    color: white;
    border-color: #e64646;
}

/* VK List Items */
.vk-list-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #2a5885;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}

.vk-list-item:hover {
    background: #f7f8fa;
    text-decoration: none;
}

.vk-list-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0;
    margin-right: 10px;
    flex-shrink: 0;
}

.vk-list-content {
    flex: 1;
    min-width: 0;
}

.vk-list-title {
    font-size: 12px;
    color: #2a5885;
    font-weight: bold;
}

.vk-list-meta {
    font-size: 10px;
    color: #939393;
}

/* Music Mobile Navigation */
.music-mobile-nav {
    margin-bottom: 15px;
}

.music-mobile-bar {
    display: flex;
    gap: 10px;
}

.music-menu-toggle {
    flex: 1;
    background: #5181b8;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
}

.music-menu-toggle:hover {
    background: #4a76a8;
}

.music-upload-btn {
    background: #5fb05f;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 13px;
}

.music-upload-btn:hover {
    background: #55a055;
    color: #fff;
    text-decoration: none;
}

/* Music Mobile Sidebar */
.music-mobile-sidebar {
    position: fixed;
    top: 42px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 42px);
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #dae1e8;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.music-mobile-sidebar.active {
    left: 0;
}

.music-mobile-sidebar-content {
    padding: 15px;
}

.music-mobile-sidebar-close {
    text-align: right;
    padding-bottom: 10px;
    font-size: 18px;
    color: #939393;
    cursor: pointer;
}

.music-mobile-overlay {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    display: none;
}

.music-mobile-overlay.active {
    display: block;
}

.music-nav-section {
    margin-bottom: 15px;
}

.music-nav-title {
    font-size: 11px;
    font-weight: bold;
    color: #939393;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 1px solid #e7e8ec;
    margin-bottom: 5px;
}

.music-nav-link {
    display: block;
    padding: 10px 5px;
    color: #2a5885;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f2f5;
}

.music-nav-link:hover {
    background: #f7f8fa;
    text-decoration: none;
}

.music-nav-link.active {
    background: #e7f0fa;
    font-weight: bold;
}

.music-nav-link .fa {
    width: 18px;
    margin-right: 8px;
    color: #939393;
}

/* Music Responsive */
@media (max-width: 768px) {
    .track-item {
        padding: 8px 10px;
    }

    .track-cover {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .track-title {
        font-size: 12px;
    }

    .track-artist {
        font-size: 10px;
    }
}

/* Feed Filters (VK Style) */
.feed-filter {
    padding: 13px 20px;
    color: #45668e;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    display: inline-block;
    transition: background 0.2s, border-color 0.2s;
}

.feed-filter:hover {
    background: #f0f2f5;
    text-decoration: none;
    color: #45668e;
}

.feed-filter.active {
    border-bottom-color: #5181b8;
    color: #000;
}

.feed-filter .fa {
    margin-right: 6px;
    color: #939393;
}

.feed-filter.active .fa {
    color: #45668e;
}

/* Custom Video Player */
.custom-video-player {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    color: #fff;
    font-family: 'Tahoma', sans-serif;
    user-select: none;
}

.custom-video-player video {
    width: 100%;
    display: block;
    cursor: pointer;
}

.custom-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 10;
}

.custom-video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.custom-video-big-play {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 5px;
    /* Visual center adjustment */
    transition: transform 0.2s, background 0.2s;
}

.custom-video-player:hover .custom-video-big-play {
    transform: scale(1.1);
    background: rgba(81, 129, 184, 0.8);
    /* VK Blue */
}

.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}

.custom-video-player:hover .custom-video-controls,
.custom-video-player.paused .custom-video-controls {
    opacity: 1;
}

.custom-video-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
}

.custom-video-btn:hover {
    opacity: 1;
    color: #a0c1e8;
}

.custom-video-time {
    font-size: 11px;
    min-width: 80px;
    text-align: center;
}

.custom-video-progress-container {
    flex-grow: 1;
    height: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-video-progress-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.custom-video-progress-filled {
    height: 100%;
    width: 0%;
    background: #5181b8;
    position: relative;
}

.custom-video-progress-container:hover .custom-video-progress-filled {
    background: #6d9cc3;
}

/* ================================
   VK 2007 STYLE COMPONENTS
   ================================ */
.vk-box-2007 {
    background: #fff;
    border: 1px solid #dae1e8;
    margin-bottom: 15px;
}

.vk-header-2007 {
    background: #f0f2f5 !important;
    background: -webkit-linear-gradient(top, #f7f9fb 0%, #f0f2f5 100%) !important;
    background: linear-gradient(180deg, #f7f9fb 0%, #f0f2f5 100%) !important;
    padding: 10px 15px;
    border-bottom: 1px solid #dae1e8;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

.vk-header-title {
    font-size: 13px;
    font-weight: bold;
    color: #45668e !important;
    margin: 0;
}

.vk-header-link {
    font-size: 11px;
    color: #2a5885;
    text-decoration: none;
}

.vk-header-link:hover {
    text-decoration: underline;
}

.version-info {
    text-align: center;
    font-size: 11px;
    color: #b2b2b2;
    padding: 10px 0;
}






/* ================================
   POLL MOBILE FIXES
   ================================ */
@media (max-width: 768px) {
    .vk-poll-container {
        margin: 0 10px 10px !important;
        padding: 15px !important;
    }

    .vk-poll-container h5 {
        font-size: 13px !important;
    }

    .poll-option-row .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* ================================
   GLOBAL MODAL (Frutiger Aero Style)
   ================================ */
.vk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.vk-modal-box {
    width: 450px;
    max-width: 90%;
    background: #fff;
    border: 1px solid #5d8cb3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    /* Slightly rounded corners */
    overflow: hidden;
    animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vk-modal-header {
    background: #5d8cb3;
    background: linear-gradient(180deg, #6d9cc3 0%, #5d8cb3 50%, #4d7ca3 100%);
    padding: 10px 15px;
    border-bottom: 1px solid #4a76a8;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vk-modal-title {
    float: left;
}

.vk-modal-close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    line-height: 14px;
    opacity: 0.8;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.vk-modal-close:hover {
    opacity: 1;
    color: #ffcccc;
}

.vk-modal-body {
    padding: 20px;
    font-size: 13px;
    color: #333;
    min-height: 60px;
    background: #fff;
}

.vk-modal-footer {
    padding: 12px 15px;
    background: #f7f8fa;
    border-top: 1px solid #e7e8ec;
    text-align: right;
}

/* Modal Buttons override to fit style */
.vk-modal-footer .btn {
    min-width: 80px;
}