/* Reset post page to use the same flow as other pages */
.page-post .header { position: static; }
.page-post .footer { position: static; }
.page-post .container { height: auto; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.page-post .main-content { height: auto; overflow: visible; }
/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Prevent layout shift when vertical scrollbar appears (only on post page) */
body.page-post { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
    body.page-post { overflow-y: scroll; }
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.video-background.hidden video {
    opacity: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.8) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px; /* чистая ширина контента */
    margin: 0 auto;
    padding: 0; /* переносим боковые отступы вниз на содержимое */
    width: 100%; /* не сжиматься по содержимому */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 8px 0 18px; /* вернули адаптивную высоту */
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0 0 27px 27px;
    margin-bottom: 18px;
}

.header .header-content { width: 100%; position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; display:flex; align-items:center; justify-content: space-between; gap: 14px; }
.header-left { display:flex; align-items:center; }
.FABMenu { margin: 0 auto; height: 64px; }
.FABMenu input {
    position: absolute;
    top: 56%;
    left: 50%;
    width: 65px;
    height: 65px;
    z-index: 20;
    border-radius: 45px;
    opacity: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.hamburger {
    position: absolute;
    top: 56%;
    left: 50%;
    width: 65px;
    height: 65px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 100%;
    z-index: 10;
    cursor: pointer;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}
.dots span {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 6px;
    background: #fff;
    z-index: 20;
    transition: all .3s ease-in-out;
    transform: translateY(-50%);
}

.first {
    left: calc(50% - 17px); /* 50% - G(12px) - s/2(5px) */
}

.second {
    left: calc(50% - 5px); /* center - s/2 */
}

.third {
    left: calc(50% + 7px); /* 50% + G(12px) - s/2(5px) */
}

.FABMenu input:checked ~ .hamburger .dots .first {
    top: 20px;
    height: 35px;
    transform-origin: top;
    transform: rotate(-45deg);
    transition: all .3s ease-in-out;
}



.FABMenu input:checked ~ .hamburger .dots .third {
    top: 20px;
    height: 35px;
    transform-origin: top;
    transform: rotate(45deg);
    transition: all .3s ease-in-out;
}
.action_items_bar {
    position: absolute;
    top: 56%;
    left: 50%;
    height: 45px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 50px;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: all .3s ease-in-out;
    backdrop-filter: blur(10px);
    padding: 0 14px; /* немного воздуха справа/слева */
    display: inline-block; /* сжимается под контент */
    white-space: nowrap;
}

/* evenly spaced items inside the bar */
.action_items_bar .action_items {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 16px; /* keep icons away from rounded corners */
}

/* always open bar (no toggle) */
.FABMenu input, .hamburger, .dots { display: none; }

.action_items { display:flex; align-items:center; justify-content: center; gap: 18px; }
.action_items span { position: static; width: 35px; height: 35px; opacity: 1; transition: all .2s ease-in-out; cursor: pointer; flex: 0 0 35px; }

.action_items span a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.action_items span a:hover {
    transform: scale(1.3);
}

/* dynamic menu: remove legacy offsets */

/* Post full view */
.post-card { width: 100%; background: rgba(255,255,255,0.05); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.post-image { width:100%; height: 420px; position: relative; overflow:hidden; }
.post-image img { width:100%; height:100%; object-fit: cover; display:block; }
.post-body { padding: 22px; }
.post-title { font-size: 2.1rem; font-weight:700; margin: 6px 0 12px; color:#fff; text-align: left; }
.post-meta { display:flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.post-content { color:#e7eaef; line-height:1.8; font-size:1.05rem; }

.FABMenu input:checked ~ .action_items_bar .action_items .first_item {
    opacity: 1;
    transition-delay: .45s;
}

.FABMenu input:checked ~ .action_items_bar .action_items .second_item {
    opacity: 1;
    transition-delay: .40s;
}

.FABMenu input:checked ~ .action_items_bar .action_items .third_item {
    opacity: 1;
    transition-delay: .40s;
}

.FABMenu input:checked ~ .action_items_bar .action_items .fourth_item {
    opacity: 1;
    transition-delay: .45s;
}

.logo {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-decoration: none;
    overflow: hidden;
}
.logo.rotating { background: transparent !important; }
.logo.rotating::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    animation: spinGradient 8s linear infinite;
    z-index: 0;
}
.logo.rotating img { position: relative; z-index: 1; }
@keyframes spinGradient { to { transform: rotate(1turn); } }
.logo.wave img, .logo.pulse img, .logo.sweep img, .logo.shimmer img, .logo.breathe img { position: relative; z-index: 1; }
.logo.wave::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    background-size: 300% 300%;
    animation: waveShift 5s ease-in-out infinite;
    z-index: 0;
}
@keyframes waveShift {
    0%,100% { background-position: 0% 50%; filter: brightness(1); }
    50% { background-position: 100% 50%; filter: brightness(1.15); }
}
.logo.pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    background-size: 200% 200%;
    animation: pulseGlow 2.2s ease-in-out infinite;
    z-index: 0;
}
@keyframes pulseGlow {
    0%,100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,212,255,0.25); }
    50% { transform: scale(1.03); box-shadow: 0 10px 28px rgba(0,212,255,0.45); }
}

/* Extra animations */
.logo.sweep::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    background-size: 250% 250%;
    animation: sweepMove 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes sweepMove {
    0%,100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.logo.shimmer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    background-size: 200% 200%;
    animation: shimmerShift 3.5s linear infinite;
    mix-blend-mode: screen;
    z-index: 0;
}
@keyframes shimmerShift {
    0% { background-position: 0% 50%; filter: saturate(1); }
    50% { background-position: 100% 50%; filter: saturate(1.2); }
    100% { background-position: 0% 50%; filter: saturate(1); }
}

.logo.breathe::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--g1, #00d4ff), var(--g2, #ff6b6b), var(--g3, #4ecdc4), var(--g4, #00d4ff));
    background-size: 220% 220%;
    animation: breatheAnim 6s ease-in-out infinite;
    z-index: 0;
}
@keyframes breatheAnim {
    0%,100% { transform: scale(1); background-position: 0% 50%; }
    50% { transform: scale(1.04); background-position: 100% 50%; }
}
/* убираем попытку расширять за пределы — вернули исходный подход */
/* Кольцо-градиент вокруг лого (включается классом .ring); отключаем на страницах настроек */
/* удалено кольцо — возвращаемся к исходным стилям .logo */
.logo-plain {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    overflow: hidden;
}
.logo-plain img { display:block; width:100%; height:100%; object-fit: cover; border-radius: 50%; }
.logo-initial {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0b1220;
    background: rgba(255,255,255,0.85);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: initial;
}
.logo img {
    display: none; /* по умолчанию прячем картинку до загрузки */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.logo.has-image .logo-initial { display: none; }
.logo.has-image img { display: block; }

.tagline {
    font-size: 0.9rem;
    color: #b8b8b8;
    font-weight: 300;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Content */
.main-content {
    padding: 20px 20px 40px; /* боковые отступы переехали сюда */
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Post page width aligned with global content paddings */
.page-post .main-content { padding: 20px 20px 40px; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-post .post-card { max-width: 1200px; margin: 0 auto; width: 100%; }

/* Use the global header/footer visuals; no custom backgrounds here */
.page-post .header .header-content { background: transparent; border: 0; border-radius: 0; padding: 0 20px; }
.page-post .footer { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 30px 30px 0 0; padding: 20px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.page-post .footer .footer-content { background: transparent; border: 0; border-radius: 0; padding: 0 20px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Game Cards */
.game-card, .news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    height: 500px;
}

.game-card:hover, .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.game-card:hover .game-image img, .news-card:hover .game-image img {
    transform: scale(1.05);
}

.game-card::before, .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before, .news-card:hover::before {
    opacity: 1;
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.game-genre {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.game-description {
    color: #b8b8b8;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00d4ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item .status-online {
    color: #4ade80;
    font-size: 1.1rem;
}

.info-item .status-offline {
    color: #f87171;
    font-size: 1.1rem;
}

.info-item .fas.fa-wifi.status-online {
    color: #4ade80;
}

.info-item .fas.fa-wifi.status-offline {
    color: #f87171;
}

.info-item i {
    font-size: 1rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 30px 30px 0 0;
    padding: 20px 0; /* вернули адаптивную высоту */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
/* Stick footer for post pages without extra scroll space */
.page-post body { min-height: 100vh; display:flex; flex-direction:column; }
.page-post .container { flex: 1 0 auto; }
.page-post .footer { margin-top: auto; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(45deg, #ff8e53, #ff6b6b);
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Контейнер футера по центру, ширина как у шапки */
.footer .footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Settings Toggle */
.settings-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 1000;
}

.settings-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.settings-toggle.rotating {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal.open {
    opacity: 1;
    visibility: visible;
}

.settings-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    padding: 20px 0;
    text-align: center;
}

.settings-modal.open .settings-panel {
    transform: scale(1) translateY(0);
}

/* Auth icon in header */
.auth-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.auth-toggle:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
}

/* Avatar button (visible после входа) */
.avatar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hidden { display: none; }

.avatar-menu {
    position: fixed; /* в корне документа */
    top: auto; /* вычисляется скриптом */
    left: auto; /* вычисляется скриптом */
    min-width: 220px;
    background: rgba(15, 20, 35, 0.9);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 12px;
    z-index: 99999;
}
.avatar-info { margin-bottom: 8px; }
.avatar-name { font-weight: 600; color: #fff; }
.avatar-actions { display: grid; gap: 8px; }
.avatar-actions > * { width: 100%; box-sizing: border-box; }
.avatar-actions #profileLink, .avatar-menu .avatar-switch { min-height: 44px; display:flex; align-items:center; }
.avatar-actions .logout-btn { min-height: 36px; display:flex; align-items:center; padding: 8px 14px; font-size: 0.95rem; }
/* Primary style for all links in menu */
.avatar-actions a { display:flex; align-items:center; justify-content:center; min-height:36px; padding: 8px 14px; border-radius: 12px; border: 0; background: linear-gradient(45deg, #00d4ff, #4ecdc4); color: #0b1220; font-weight: 600; text-decoration: none; }
.avatar-actions a:hover { filter: brightness(1.05); }
/* Exit button — orange */
.logout-btn { padding: 10px 14px; border-radius: 12px; border: 0; background: linear-gradient(45deg, #ff6b6b, #ff8e53); color: #fff; cursor: pointer; font-weight:600; }
.logout-btn:hover { filter: brightness(1.05); }
/* Default button style (non-link) */
.avatar-actions button:not(.logout-btn) { color: #e7eaef; text-align: left; padding: 8px 12px; min-height:36px; display:flex; align-items:center; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; text-decoration:none; }
/* Switch compact inside avatar menu */
.avatar-menu .avatar-switch { display:flex; align-items:center; justify-content: space-between; gap: 12px; padding: 8px 14px; min-height:36px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.avatar-menu .avatar-switch span { color:#e7eaef; }
.avatar-menu .toggle-switch { width: 42px; height: 22px; }
.avatar-menu .slider:before { width:16px; height:16px; }
.avatar-menu input:checked + .slider:before { transform: translateX(20px); }
.admin-link { color: #ffd27f; font-weight: 600; }

/* Generic centered modal (login/register/forgot) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.modal.open { opacity: 1; visibility: visible; }

/* Блокируем прокрутку страницы при открытой модалке */
body.modal-open { overflow: hidden; }
/* И блокируем прокрутку контента админки, чтобы модалка не "ездила" вместе с таблицей */
.admin-content.no-scroll { overflow: hidden !important; }

.modal-panel {
    width: 420px;
    max-width: 92vw;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }

.form-row {
    margin-bottom: 14px;
}
.form-row input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
}
/* Вернём комфортную высоту инпутов только на странице настроек */
.page-settings .form-row input { padding: 12px 14px; min-height: 42px; }
/* И в авторизационных модалках вернём комфортную высоту */
.modal .form-row input,
.modal .form-row textarea,
.modal .form-row select { padding: 12px 14px; min-height: 42px; }
/* Match textarea styling to inputs */
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
}
.display-value { padding: 8px 2px; color:#cfd3dc; border: 0; background: transparent; }
.field-label { color:#cfd3dc; font-size:0.9rem; margin: 8px 2px 6px; display:block; }
.profile-top { display:flex; gap:20px; align-items:center; margin-bottom:16px; }
.profile-top.vertical { flex-direction: column; align-items: center; }
.avatar-preview { width:120px; height:120px; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.25); }
.avatar-preview img { width:100%; height:100%; object-fit: cover; display:block; }
.avatar-preview.large { width:140px; height:140px; }
.avatar-preview.huge { width:400px; height:300px; border-radius:18px; }
.avatar-actions-col { display:flex; align-items:center; gap:12px; }
.avatar-actions-col.block { flex-direction: column; align-items:center; }
.avatar-choose-btn { padding: 10px 18px; border-radius: 20px; }
.avatar-hint { font-size: 0.85rem; color: #9fb3c8; }
.profile-fields { display:grid; grid-template-columns: 1fr; gap: 2px; }
.select-themed { width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.25); color:#fff; appearance:none; position: relative; }
.select-themed:after { content:''; position:absolute; right:14px; top:50%; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:6px solid #cfd3dc; transform: translateY(-50%); }
.select-themed:focus { outline: none; border-color: rgba(0,212,255,0.45); box-shadow: 0 0 0 3px rgba(0,212,255,0.15); }

@media (max-width: 520px) {
    .profile-top { flex-direction: column; align-items:flex-start; }
}

/* Notices */
.notice { padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; border:1px solid rgba(255,255,255,0.12); }
.notice.error { background: rgba(255, 107, 107, 0.12); color: #ffb3b3; }
.notice.success { background: rgba(78, 205, 196, 0.12); color: #bff2ee; }

/* Settings grid */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-col { display: flex; }
.card-lite { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 16px; }
.profile-static { margin-top: 12px; display: grid; gap: 6px; }
.kv-row { 
    display: flex; 
    align-items: center; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.kv-row:last-child { border-bottom: none; }
.kv-label { 
    font-weight: 600; 
    color: #cfd3dc; 
    min-width: 120px;
    margin-right: 15px;
}
.kv-value { 
    color: #e7eaef; 
    flex: 1;
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
}
.form-captcha {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}
.captcha-img { width: 90px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.25); }
.captcha-refresh {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
    cursor: pointer;
}
.form-actions { margin-top: 10px; }
.btn.primary {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(45deg, #00d4ff, #4ecdc4);
    color: #0b1220;
    cursor: pointer;
    font-weight: 600;
}
.form-links { display: flex; justify-content: space-between; margin-top: 10px; }
.form-links a { color: #b8b8b8; font-size: 0.9rem; }
.form-error { color: #ff7777; margin-top: 10px; min-height: 20px; }

/* Comments form tweaks */
.comments-form .form-row textarea { min-height: 140px; resize: vertical; border-radius: 14px; background: rgba(255,255,255,0.06); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.comments-form .btn.primary { width: auto; padding: 10px 18px; border-radius: 12px; }

/* Comments list styling */
.comment-item { border:1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); border-radius:12px; padding:12px; margin-bottom:10px; }
.comment-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.comment-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.comment-name { font-weight:600; color:#fff; }
.comment-date { margin-left:auto; color:#9fb3c8; font-size:0.85rem; }
.comment-body { color:#e7eaef; }
.reply-inline { display:inline-block; margin-left: 8px; }
.reply-inline summary { cursor:pointer; color:#00d4ff; display:inline-flex; align-items:center; gap:6px; }
.reply-form { display:grid; gap:8px; margin-top:6px; }
.reply-form textarea { width:100%; padding:12px 14px; border-radius:10px; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color:#fff; font-size: 14px; line-height: 1.4; resize: vertical; min-height: 80px; }
.btn.small { padding: 8px 12px; border-radius:10px; }
.comment-actions { margin-top:6px; }
.comment-actions-left { display:flex; align-items:center; gap:8px; }
.comment-sep { width:1px; height:16px; background: rgba(255,255,255,0.15); display:inline-block; }
/* Make reply submit compact */
.reply-form .btn.primary { width: auto; }

/* Reply button styling - same as like button */
.reply-btn { background: transparent; border: 0; color: #00d4ff; cursor: pointer; display: inline-flex; align-items: center; gap:6px; font: inherit; }
.reply-btn:hover { filter: brightness(1.15); }

/* Reply form container */
.reply-form-container { margin-top: 8px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }

/* Reply form actions */
.reply-form-actions { display: flex; gap: 8px; margin-top: 8px; }
.reply-form-actions .btn { flex: 0 0 auto; }

/* Icon button (for likes) */
.icon-btn { background: transparent; border: 0; color: #00d4ff; cursor: pointer; display: inline-flex; align-items: center; gap:6px; font: inherit; }
.icon-btn:hover { filter: brightness(1.15); }
.like-form { display: inline-flex; align-items: center; }

/* Delete button for comments */
.delete-btn { background: transparent; border: 0; color: #ff6b6b; cursor: pointer; display: inline-flex; align-items: center; font: inherit; padding: 2px; font-size: 0.85rem; text-decoration: underline; }
.delete-btn:hover { filter: brightness(1.15); color: #ff4444; }

.settings-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.settings-header h4 {
    margin: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-settings {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.close-settings:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(45deg, #ff8e53, #ff6b6b);
}

.settings-content {
    padding: 0 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.setting-item label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 1;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(45deg, #4ade80, #22c55e);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 20px 0 15px;
        margin-bottom: 15px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-card {
        margin-bottom: 20px;
    }
    
    .game-content {
        padding: 20px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-item {
        justify-content: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .game-content {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
}

/* Ensure identical content width on settings page */
.page-settings .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.page-settings .main-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Стили для постов */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.post-header {
    margin-bottom: 25px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e7eaef;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-category {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #4ecdc4);
    color: #0b1220;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #9fb3c8;
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-image {
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.post-excerpt {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #00d4ff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cfd3dc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-body {
    line-height: 1.8;
    color: #e7eaef;
    font-size: 1.05rem;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
    color: #e7eaef;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #4ecdc4;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cfd3dc;
}

.post-body code {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-body pre code {
    background: none;
    color: #e7eaef;
    padding: 0;
}

.post-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-comments h3 {
    color: #e7eaef;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.back-button {
    text-align: center;
    margin-top: 30px;
}

.back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #00d4ff, #4ecdc4);
    color: #0b1220;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.error-message h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 2rem;
}

.error-message p {
    color: #cfd3dc;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Адаптивность для постов */
@media (max-width: 768px) {
    .post-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Стили для страниц */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Стили для страниц в main-content */
.main-content .page-content {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #e7eaef;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #cfd3dc;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    line-height: 1.8;
}

.page-body h1, .page-body h2, .page-body h3, .page-body h4, .page-body h5, .page-body h6 {
    color: #e7eaef;
    margin: 30px 0 15px 0;
}

.page-body h1 { font-size: 2rem; }
.page-body h2 { font-size: 1.8rem; }
.page-body h3 { font-size: 1.5rem; }
.page-body h4 { font-size: 1.3rem; }
.page-body h5 { font-size: 1.1rem; }
.page-body h6 { font-size: 1rem; }

.page-body p {
    margin-bottom: 20px;
    color: #cfd3dc;
}

.page-body ul, .page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-body li {
    margin-bottom: 10px;
    color: #cfd3dc;
}

.page-body blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #cfd3dc;
}

.page-body code {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.page-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-body pre code {
    background: none;
    color: #e7eaef;
    padding: 0;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-body th, .page-body td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-body th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-weight: 600;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
}

/* Полноэкранное модальное окно */
.fullscreen-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 9999 !important;
    display: none !important;
    overflow-y: auto !important;
}

.fullscreen-modal.open {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.fullscreen-panel {
    width: 95% !important;
    max-width: 1400px !important;
    height: 95vh !important;
    margin: 2.5vh auto !important;
    background: #1a1a1a !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.fullscreen-panel .settings-header {
    padding: 20px 30px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.05) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.fullscreen-panel .settings-content {
    flex: 1 !important;
    padding: 30px !important;
    overflow-y: auto !important;
}

.fullscreen-panel .form-row {
    margin-bottom: 20px !important;
}

.fullscreen-panel .form-row label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #e7eaef !important;
}

.fullscreen-panel .form-actions {
    margin-top: 20px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.fullscreen-panel .form-actions .btn {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    min-width: 120px !important;
}

.fullscreen-panel .form-actions .btn.primary {
    background: linear-gradient(45deg, #00d4ff, #4ecdc4) !important;
    color: #0b1220 !important;
    font-weight: 600 !important;
    width: auto !important;
}

.fullscreen-panel .form-actions .btn:not(.primary) {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e7eaef !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.fullscreen-panel .form-actions .btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}



/* Jodit Editor стили для темной темы */
.jodit-container {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
}

.jodit-toolbar {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.jodit-toolbar__box {
    background: transparent !important;
}

.jodit-ui-button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e7eaef !important;
}

.jodit-ui-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.jodit-ui-button__icon {
    color: #e7eaef !important;
}

.jodit-workplace {
    background: rgba(255, 255, 255, 0.05) !important;
}

.jodit-wysiwyg {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e7eaef !important;
}

.jodit-source__mirror {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e7eaef !important;
    font-family: 'Courier New', monospace !important;
}

.jodit-status-bar {
    background: rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e7eaef !important;
}

.jodit-ui-list__item {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e7eaef !important;
}

.jodit-ui-list__item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.jodit-ui-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e7eaef !important;
}

.jodit-ui-input:focus {
    border-color: #007bff !important;
}

.jodit-ui-separator {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Скрываем кнопку fullsize окончательно */
.jodit-toolbar-button[data-name="fullsize"],
.jodit-ui-group__fullsize,
.jodit-toolbar-button_fullsize { display: none !important; }

/* Cleanup fullsize overrides: не вмешиваемся больше в макет страницы */
html.jodit_fullsize-box_true,
body.jodit_fullsize-box_true { overflow: visible !important; }

/* На всякий случай уберём любые позиционирования, если остались */
.jodit_fullsize { position: static !important; inset: auto !important; width: auto !important; height: auto !important; z-index: auto !important; background: transparent !important; }

/* Pages table tweaks */
.table.compact th.col-views, .table.compact td.td-views { width: 44px; text-align: center; }
.td-views i.fa-eye { color: #9fb3c8; opacity: 0.9; }
.td-views i.fa-eye:hover { color: #00d4ff; opacity: 1; }

/* Unified base style for action buttons (edit + view) */
.table.compact .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

/* Visual style for normal (non-danger) buttons */
.table.compact .actions .btn:not(.danger) {
    background: #ffffff;
    border: none;
    color: #0b1220;
}
.table.compact .actions .btn:not(.danger):hover {
    filter: brightness(0.95);
}
.table.compact .actions .btn.danger { background: linear-gradient(45deg, #ff6b6b, #ff8e53); border: none; color: #fff; }

/* Make date columns nowrap and consistent */
.table.compact td:nth-child(8),
.table.compact td:nth-child(9),
.table.compact th:nth-child(8),
.table.compact th:nth-child(9) { white-space: nowrap; }

/* Pages list: actions header */
.page-actions { display:flex; justify-content:center; margin: 0 0 14px; }
.page-actions .btn.create { padding: 10px 18px; border-radius: 12px; }

/* Views as compact metric */
.table.compact th.col-views { width: 44px; text-align:center; }
.td-views { text-align:center; }
.td-views .views-cell { display:flex; flex-direction:column; align-items:center; gap:6px; }
.td-views .views-cell .views-num { color:#e7eaef; font-weight:600; }

/* Two-line date */
.td-date { white-space:nowrap; }
.td-date .date { display:block; color:#cfd3dc; }
.td-date .time { display:block; color:#9fb3c8; margin-top:2px; }

/* view uses the same styles as edit via shared classes; no overrides needed */

/* tighten some columns */
.table.compact th:nth-child(1), .table.compact td:nth-child(1) { width:40px; }
.table.compact th:nth-child(3), .table.compact td:nth-child(3) { max-width:180px; overflow:hidden; text-overflow:ellipsis; }



/* Center preview image block inside post edit modal */
#postEditModal .img-preview { margin-left: auto; margin-right: auto; }
#postEditModal .img-preview img { display: block; margin: 0 auto; }
