/* ===================================================================
 *  Стили для контекстного меню и связанных модальных окон (menu.css)
 * ===================================================================
 */

 .video-card {
    position: relative;
}
.video-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.video-details-bottom {
    display: flex; 
    gap: 12px;
    align-items: flex-start;
    padding-right: 50px;
}
.video-text {
    flex-grow: 1;
    min-width: 0; 
}

.context-menu-container {
    position: absolute;
    bottom: 42px; 
    right: 8px;
    z-index: 5;
}

.context-menu-button { 
    background: none; 
    border: none; 
    padding: 8px; 
    cursor: pointer; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background-color 0.2s; 
    opacity: 1;
}

.context-menu-button:hover { 
    background-color: #3f3f3f; 
}

.context-menu-button img { 
    width: 22px; 
    height: 22px; 
    filter: invert(1); 
}


.context-menu-dropdown { 
    display: none; 
    position: absolute; 
    background-color: #282828; 
    border-radius: 12px; 
    padding: 8px 0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); 
    z-index: 10; 
    min-width: 250px; 
    right: 0; 
    top: 45px;
    bottom: auto;
    transform: scale(var(--overlay-ui-scale, 1));
    transform-origin: top right;
}

.context-menu-dropdown.opens-upward {
    top: auto;
    bottom: 45px;
    transform-origin: bottom right;
}

.context-menu-dropdown.active { 
    display: block; 
}

.context-menu-dropdown a { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    padding: 12px 16px; 
    color: #f1f1f1; 
    text-decoration: none; 
    font-size: 14px; 
    white-space: nowrap; 
}

.context-menu-dropdown a:hover { 
    background-color: #3f3f3f; 
}

.context-menu-dropdown a img { 
    width: 22px; 
    height: 22px; 
    filter: invert(1); 
}

.video-card .context-menu-dropdown.active {
    z-index: 120;
}

.video-card.context-menu-open {
    position: relative;
    overflow: visible;
}

body.page-home .video-card.context-menu-open {
    z-index: 120;
}

.context-menu-container {
    z-index: 6;
}

.context-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.context-menu-backdrop.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .context-menu-dropdown.active,
    .context-menu-dropdown.is-viewport-positioned.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10070 !important;
        pointer-events: auto !important;
    }

    body.page-home .context-menu-dropdown.is-viewport-positioned.active {
        z-index: 10070 !important;
    }
}

@media (min-width: 901px) {
    .context-menu-backdrop {
        display: none !important;
        pointer-events: none !important;
    }
}

body.page-home #home-feed-grid > .video-card .context-menu-dropdown {
    transform: none;
    transform-origin: top right;
}

body.page-home #home-feed-grid > .video-card .context-menu-dropdown.opens-upward {
    transform: none;
    transform-origin: bottom right;
}

/* Модалки (share/add/create/login/etc) вынесены в common_modals.css (глобально подключен). */

/* --- Уведомления (Toast) --- */
.notification { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(150%); opacity: 0; padding: 12px 24px; background-color: #282828; color: #f1f1f1; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); z-index: 9999; font-size: 14px; font-weight: 500; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease; }
.notification.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.notification.error { background-color: #c62828; color: #fff; }


/* Report modal styles moved to common_modals.css */
#other-reason-details:focus { 
    outline: none; 
    border-color: #3ea6ff; 
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
}

.report-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.report-button { 
    padding: 10px 24px; 
    border-radius: 20px; 
    border: none; 
    font-weight: 500; 
    font-size: 14px; 
    cursor: pointer; 
    transition: background-color 0.2s; 
}

.report-button.cancel { 
    background-color: transparent; 
    color: #3ea6ff; 
}
.report-button.cancel:hover { 
    background-color: rgba(62, 166, 255, 0.1); 
}

.report-button.submit { 
    background-color: #3ea6ff; 
    color: #0f0f0f; 
}
.report-button.submit:hover { 
    background-color: #65b8ff; 
}
.report-button.submit:disabled { 
    background-color: #3f3f3f; 
    color: #909090; 
    cursor: not-allowed; 
}

 .modal-content-small.login-modal-content {
    padding: 32px;
    max-width: 400px;
    text-align: center;
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
    z-index: 5;
}

.modal-close-button:hover {
    color: #fff;
}

.login-modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-align: center;
}

.login-modal-content .login-modal-text {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.login-modal-content .login-modal-actions {
    display: flex;
    gap: 12px;
}

.login-modal-actions .modal-button-small {
    flex: 1;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 10px 20px;
}

.login-modal-actions .modal-button-small.create {
    background-color: #f1f1f1;
    color: #0f0f0f;
}

.login-modal-actions .modal-button-small.create:hover {
    background-color: #dcdcdc;
}

.login-modal-actions .modal-button-small.secondary {
    background-color: transparent;
    color: #f1f1f1;
    border-color: #3f3f3f;
}

.login-modal-actions .modal-button-small.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

 .channel-name-link {
    color: var(--text-secondary-color);
    text-decoration: none; 
    font-size: 14px; 
    margin: 0;
    transition: color 0.2s ease;
}

.channel-name-link:hover {
    color: var(--text-color);
}