:root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.269 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.371 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.704 0.191 22.216);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
    --sidebar: oklch(0.205 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: oklch(0.488 0.243 264.376);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(1 0 0 / 10%);
    --sidebar-ring: oklch(0.439 0 0);
}

.edit-game-modal.active[data-category="planned"] #edit-game-meta,
.edit-game-modal.active[data-category="suggestions"] #edit-game-meta {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

svg {
    fill: var(--foreground);
    width: 18px;
    height: 18px;
}

input,
textarea,
select,
button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
    background-color: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

select:hover {
    background-color: var(--card);
}

select:focus {
    border-color: var(--primary);
    background-color: var(--card);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 20px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.navbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    flex-direction: column;
}

.layout>.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: 290px;
    background-color: var(--sidebar);
    border: 1px solid var(--sidebar-border);
    border-radius: 16px;
    padding: 20px 0;
    margin: 20px;
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sidebar-nav {
    padding: 0 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--sidebar-foreground);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
}

.sidebar-item:hover {
    background-color: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

.sidebar-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.sidebar-disabled {
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: var(--foreground);
    cursor: not-allowed;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-disabled:hover {
    background-color: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -460px;
    left: -480px;
    width: 960px;
    height: 960px;
    background: radial-gradient(circle at top left, rgba(128, 128, 128, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: -460px;
    right: -480px;
    width: 960px;
    height: 960px;
    background: radial-gradient(circle at bottom right, rgba(128, 128, 128, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.main-content {
    flex: 1;
    margin-left: 290px;
    padding: 40px;
    padding-right: 20px;
    padding-bottom: 0;
    max-width: calc(100vw - 280px);
    overflow-x: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.tab-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary-foreground);
    position: relative;
    transition: box-shadow 0.3s ease, border 0.3s ease;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.brand-logo.live {
    border: 2px solid #ff0000;
    animation: border-pulse 4s infinite ease-in-out;
}

@keyframes border-pulse {
    0% {
        border-color: #ff0000;
    }

    50% {
        border-color: #ff4444;
    }

    100% {
        border-color: #ff0000;
    }
}

.brand-logo img {
    width: 40px;
    height: auto;
}

.brand-text {
    text-align: left;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--foreground);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 5px;
}

.brand-slogan {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: -0.3px;
}

.live-label {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    pointer-events: none;
}

.live-label.active {
    opacity: 1;
}

.date-badge {
    background-color: transparent;
    color: var(--secondary-foreground);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed) ease;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.date-badge:hover {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.stream-dot {
    display: none;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-left: 6px;
}

.stream-dot.active {
    display: inline-block;
    animation: stream-pulse 2s infinite ease-in-out;
}

@keyframes stream-pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

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

.timer-card {
    background: transparent;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timer-card:hover {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.timer-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top left, rgba(128, 128, 128, 0.075) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.timer-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at bottom right, rgba(128, 128, 128, 0.075) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.timer-card:hover::before,
.timer-card:hover::after {
    opacity: 0.1;
}

.timer-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.timer-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted-foreground);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.human-time {
    padding: 30px;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.time-highlight {
    color: var(--foreground);
    font-weight: 700;
}

.info-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 30px;
    background-color: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.timer-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.timer-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.support-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.support-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.pricelist-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.pricelist-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.pc-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.pc-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.games-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.media-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.games-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.media-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.reviews-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    display: block;
}

.info-title svg {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.icon-text {
    display: flex;
    align-items: center;
}

.timer-icon svg {
    color: #3b82f6;
}

.support-icon svg {
    color: #ef4444;
}

.warning-icon svg {
    color: #ef4444;
}

.pricelist-icon svg {
    color: #10b981;
}

.pc-icon svg {
    color: #f97316;
}

.games-icon svg {
    color: #8b5cf6;
}

.media-icon svg {
    color: #ec4899;
}

.reviews-icon svg {
    color: #06b6d4;
}

.notifications-icon svg {
    color: #eab308;
}

.sidebar-item .icon-text svg {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    stroke: currentColor;
    fill: none;
}

.sidebar-item .icon-text svg[data-lucide="home"] {
    color: #3b82f6;
}

.sidebar-item .icon-text svg[data-lucide="gamepad-2"] {
    color: #8b5cf6;
}

.sidebar-item .icon-text svg[data-lucide="clapperboard"] {
    color: #ec4899;
}

.sidebar-item .icon-text svg[data-lucide="message-square"] {
    color: #06b6d4;
}

.sidebar-item .icon-text svg[data-lucide="bell"] {
    color: #eab308;
}

.sidebar-item .icon-text svg[data-lucide="shield"] {
    color: #10b981;
}

.sidebar-item .icon-text svg[data-lucide="external-link"] {
    color: #f97316;
}

.sidebar-disabled .icon-text svg {
    width: 20px;
    height: 20px;
    margin-right: 14px;
    stroke: currentColor;
    fill: none;
}

.sidebar-disabled .icon-text svg[data-lucide="lock"] {
    color: #ef4444;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.info-text {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.info-highlight {
    color: var(--primary);
    font-weight: 600;
}

.footer {
    margin-top: 35px;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 1rem;
}

.footer-logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-foreground);
    position: relative;
    padding: 8px 15px;
    background: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.nav-bar {
    margin-bottom: 20px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.nav-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted-foreground);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    background: var(--secondary);
    border: 1px solid var(--border);
}

.nav-item:hover {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--border);
}

.nav-item.active {
    color: var(--primaryforeground);
    background: var(--primary);
    border: 1px solid var(--border);
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
}

.tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: visible;
}

.tab-content.active {
    display: flex;
    animation: tabFadeIn 0.5s ease-out;
}

.nav-disabled {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted-foreground);
    background-color: var(--secondary);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: not-allowed;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.support-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    cursor: pointer;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.telegram-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-light);
    background: linear-gradient(135deg, #1c93e3 0%, #66a9e0 100%);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(28, 147, 227, 0.2);
    transition: all var(--transition-speed) ease;
    cursor: pointer;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pc-config-list {
    list-style: none;
    margin-top: 20px;
}

.pc-config-list li {
    font-size: 1.1rem;
    color: var(--foreground);
    margin-bottom: 10px;
}

.config-label {
    color: var(--muted-foreground);
    font-weight: 600;
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-top: 20px;
}

.price-card {
    background: var(--card);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    flex: 1 1 calc(33.333% - 14px);
    min-width: 280px;
    max-width: calc(33.333% - 14px);

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.price-card:hover {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.price-content {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    text-align: center;
    justify-content: center;
}

.price-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
}

.price-value {
    font-size: 1.5rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    border-top: 1px solid var(--border);
}

.review-form {
    margin-top: 20px;
    margin-bottom: 20px;
}

.review-card {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    background: var(--card);
}

.review-avatar {
    width: 51px;
    height: 51px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    position: relative;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    flex-shrink: 0;
    text-transform: uppercase;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.review-form-avatar {
    cursor: pointer;
    color: var(--primary-foreground);
}

.review-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-nickname-input,
.review-message-input,
.search-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.review-nickname-input:focus,
.review-message-input:focus,
.search-input {
    border-color: var(--primary);
}

.review-nickname-input {
    font-weight: 600;
}

.review-message-input {
    resize: none;
    height: 100px !important;
}

.review-char-count {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    text-align: right;
    display: none;
}

.review-submit-button {
    align-self: flex-end;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.review-item::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, rgba(128, 128, 128, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.review-item:hover:not(:has(.review-reply-form:hover)) {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.review-item.reply-open {
    border: 1px solid var(--border);
    background: transparent;
}

.review-item.reply-open .review-reply-form {
    border: 1px solid var(--border) !important;
    border-radius: 8px;
}

.review-item .review-content {
    text-align: left;
}

.review-reply-form {
    margin-top: 15px;
    padding: 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    display: flex;
    gap: 0;
    animation: replyFormSlideDown 0.3s ease;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.review-reply-form-inner {
    display: flex;
    gap: 15px;
    padding: 15px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.review-reply-form:hover {
    background: var(--secondary);
}

.review-item.reply-open:has(.review-reply-form:hover) {
    border: 1px solid var(--border) !important;
    background: transparent !important;
}

.review-item.reply-open .review-reply-form:hover {
    border-color: var(--secondary) !important;
    background: var(--secondary);
}

@keyframes replyFormSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-reply-form.active {
    display: flex;
}

.review-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--primary-foreground);
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

.review-reply-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.review-reply-nickname-block {
    margin-bottom: 0;
}

.review-reply-nickname-display {
    display: inline-flex;
}

.review-reply-nickname-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.review-reply-nickname {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
}

.review-reply-nickname-edit-icon {
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--muted-foreground);
    fill: none;
    stroke: currentColor;
}

.review-reply-nickname-wrap:hover .review-reply-nickname-edit-icon {
    opacity: 1;
}

.review-reply-nickname-edit-icon:hover {
    color: var(--foreground);
}

.review-reply-nickname-input {
    width: 100%;
    max-width: 250px;
}

.floating-group .review-reply-message-input {
    height: 41px !important;
    min-height: 41px !important;
    max-height: 80px !important;
    resize: none;
    font-size: 0.95rem;
    overflow-y: auto;
}

.floating-group .review-reply-nickname-input {
    font-size: 0.95rem;
}

.floating-group .review-reply-message-input ~ .floating-label {
    top: 12px;
    transform: none;
}

.floating-group .review-reply-message-input:not(:placeholder-shown) ~ .floating-label,
.floating-group .review-reply-message-input:focus ~ .floating-label {
    top: -8px;
    transform: none;
    font-size: 0.75rem;
}

.review-reply-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.review-reply-cancel,
.review-reply-submit {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--muted-foreground);
    padding: 6px 12px;
    border-radius: 8px;
    background: none;
    color: var(--muted-foreground);
}

.review-reply-cancel:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}

.review-reply-submit {
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
}

.review-reply-submit:hover {
    opacity: 0.9;
}

.review-nickname-block {
    margin-bottom: 15px;
}

.review-nickname-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.review-nickname-edit-icon {
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--muted-foreground);
    fill: none;
    stroke: currentColor;
}

.review-nickname-wrap:hover .review-nickname-edit-icon {
    opacity: 1;
}

.review-nickname-edit-icon:hover {
    color: var(--foreground);
}

.review-nickname-edit-icon:hover {
    color: var(--foreground);
}

.review-nickname {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0;
}

.review-item .review-nickname {
    margin-bottom: 10px;
}

.review-message {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.review-dates {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.review-edit-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-foreground);
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.review-edit-timer svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.review-edit-timer-text {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.review-edit-timer-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-edit-timer-warning svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.review-edit-timer-warning strong {
    font-weight: 600;
}

.review-like-block {
    display: flex;
    align-items: center;
    gap: 4px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.review-like-btn[data-loading="1"] {
    pointer-events: none;
    opacity: 0.7;
}

.review-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.review-like-btn svg {
    width: 18px;
    height: 18px;
}

.review-like-btn svg path {
    fill: var(--muted-foreground);
    fill-opacity: 0;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill-opacity 0.2s ease;
}

.review-like-btn:hover svg path {
    fill-opacity: 1;
}

.review-like-btn.liked {
    color: #ef4444;
}

.review-like-btn.liked svg path {
    fill: #ef4444;
    fill-opacity: 1;
    stroke: #ef4444;
}

.review-like-count {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    min-width: 1.2em;
}

.review-dates .created-at {
    color: var(--muted-foreground);
}

.review-date {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-top: 10px;
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    min-width: 100px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.pagination-button:disabled {
    background: var(--secondary);
    color: var(--muted-foreground);
    cursor: not-allowed;
}

.pagination-info {
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    width: 80px;
    text-align: center;
    cursor: text;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pagination-input {
    width: 100%;
    padding: 9px 19px;
    font-size: 1rem;
    color: var(--foreground);
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
}

.modal-content {
    --modal-gradient-color: rgba(239, 68, 68, 0.2);
}

.modal-body {
    display: none;
}

.modal-body.active {
    display: block;
}

.modal-body .info-title {
    text-align: left;
    display: block;
}

.modal-body .info-text {
    text-align: left;
}

.card-form {
    margin-top: 20px;
}

.card-input {
    width: 100%;
    font-size: 1rem;
    color: var(--foreground);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.card-input:focus {
    border-color: var(--primary);
}

.card-input::placeholder {
    color: var(--muted-foreground);
}

.error-message {
    color: #ff5555;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.lazy-button {
    flex: 0 0 auto;
}

.modal-submit-button,
.modal-close-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    width: auto;
    align-self: flex-end;
}

.modal-close-button {
    margin: 0 auto;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subnav-bar {
    margin-bottom: 20px;
}

.subnav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

/* Кнопка «Предложить» прижата вправо только на десктопах */
@media (min-width: 769px) {
    .games-section .subnav-list .subnav-item:last-child {
        margin-left: auto;
    }
}

.suggestions-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.suggestions-plus-icon {
    stroke-width: 2;
    color: var(--muted-foreground);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.subnav-item:hover .suggestions-plus-icon {
    color: var(--foreground);
}

.subnav-item.active .suggestions-plus-icon {
    color: var(--primary-foreground);
}

.subnav-item:hover .suggestions-plus-icon {
    color: var(--foreground);
}

.subnav-item.active .suggestions-plus-icon {
    color: var(--primary-foreground);
}

.subnav-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border);
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
}

.subnav-item:hover {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.subnav-item.active {
    color: var(--primary-foreground);
    background: var(--primary);
    border: 1px solid var(--border);
}

.subtab-content {
    display: none;
}

.subtab-content.active {
    display: block;
    animation: tabFadeIn 0.5s ease-out;
}

/* Suggestions tab styles */

.suggestions-submit-row {
    justify-content: flex-end !important;
}

.suggestions-submit-row .game-submit-button {
    margin-left: auto;
}

/* Форма suggestions скрыта для админа - управляется через JS */

/* Статусные надписи для suggestions */
.suggestion-status-completed {
    color: #22c55e;
}

.suggestion-status-planned {
    color: #eab308;
}

.suggestion-status-dropped {
    color: #ef4444;
}

.suggestion-status-rejected {
    color: #ef4444;
}

/* Красная точка для новых suggestions (админ) */
.suggestions-new-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .suggestions-new-dot {
        width: 8px;
        height: 8px;
        top: -3px;
        right: -3px;
    }
}

/* Модальное окно: edit suggestions submit row */
.edit-suggestions-submit-row {
    justify-content: flex-end !important;
}

.edit-suggestions-submit-row .game-categories-wrapper {
    display: none !important;
}

.game-search,
.media-search {
    margin-bottom: 20px;
}

.game-search-input,
.media-search-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.game-search-input:hover,
.media-search-input:hover {
    background-color: var(--card);
}

.game-search-input:focus,
.media-search-input:focus {
    border-color: var(--primary);
    background-color: var(--card);
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 20px;
    height: 20px;
    pointer-events: none;
    stroke: currentColor;
    fill: none;
    opacity: 0.7;
    z-index: 6;
}

.mobile-text { display: none; }
.desktop-text { display: inline; }

@media (max-width: 768px) {
    .mobile-text { display: inline; }
    .desktop-text { display: none; }
}

.game-search-input,
.media-search-input {
    padding-left: 40px;
}

.game-form,
.media-form {
    margin-bottom: 20px;
    max-width: 100% !important;
    min-width: 0 !important;
}

.game-card,
.media-card {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: visible !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.game-card:hover,
.media-card:hover {
    border: 1px solid var(--border);
    background: var(--card);
}

.game-image,
.media-image {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    background-color: var(--input);
    border: 1px solid var(--border);
    flex-shrink: 0;
    text-align: center;
    background-size: auto 101% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.media-image {
    background-size: cover !important;
}

.game-placeholder,
.media-placeholder {
    padding: 10px;
    text-align: center;
}

.game-content,
.media-content {
    flex-grow: 1 !important;
    display: flex;
    position: relative;
    overflow: visible !important;
    flex-direction: column;
    max-width: 100% !important;
    min-width: 0 !important;
}

.game-title-input,
.game-comment-input,
.game-meta-input,
.media-title-input,
.media-comment-input,
.media-meta-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 45px;
}

.game-title-input:focus,
.game-comment-input:focus,
.game-meta-input:focus,
.media-title-input:focus,
.media-comment-input:focus,
.media-meta-input:focus {
    border-color: var(--primary);
}

.game-comment-input,
.media-comment-input {
    resize: vertical;
    min-height: 96px !important;
}

.game-meta,
.media-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    margin-bottom: 15px;
}

/* Строка с названием и годами для фильмов и сериалов */
.media-title-row {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

/* Фильмы: 3/4 название, 1/4 год */
#movies-list-form .media-title-row,
.edit-media-form.movies .media-title-row {
    grid-template-columns: 3fr 1fr;
}

/* Сериалы: 1/2 название, 1/2 годы */
#series-list-form .media-title-row,
.edit-media-form.series .media-title-row {
    grid-template-columns: 1fr 1fr;
}

.media-title-group {
    min-width: 0;
}

.media-years-group {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.media-year-group {
    flex: 1;
    min-width: 0;
}

#edit-media-end-year-group {
    display: none;
}

@media (max-width: 768px) {
    /* Фильмы на мобильных: название и год в столбик */
    #movies-list-form .media-title-row,
    .edit-media-form.movies .media-title-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Сериалы на мобильных: название + годы в столбик, но годы в строку */
    #series-list-form .media-title-row,
    .edit-media-form.series .media-title-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #series-list-form .media-years-group,
    .edit-media-form.series .media-years-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    #movies-list-form .media-years-group,
    .edit-media-form.movies .media-years-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .game-meta {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }
    
    .game-meta > .floating-group:nth-of-type(1) {
        grid-column: span 2;
    }
    
    .game-meta > .game-platinum {
        grid-column: span 1;
        width: 100%;
        justify-content: center;
    }
    
    .game-meta:not(:has(.game-platinum)) > .floating-group:nth-of-type(1) {
        grid-column: span 3;
    }
    
    .game-meta > .floating-group:nth-of-type(2),
    .game-meta > .floating-group:nth-of-type(3),
    .game-meta > .floating-group:nth-of-type(4) {
        grid-column: span 1;
        min-width: 0;
    }
}

.media-meta-row {
    display: contents;
}

.game-meta-input,
.media-meta-input {
    flex: 1;
    min-width: 60px;
}

.game-platinum,
.media-platinum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--foreground);
}

.platinum-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.game-platinum input[type="checkbox"],
.media-platinum input[type="checkbox"] {
    display: none;
}

.game-platinum input[type="checkbox"]:checked+.platinum-checkbox,
.media-platinum input[type="checkbox"]:checked+.platinum-checkbox {
    border-color: #888;
}

.game-platinum:hover input[type="checkbox"]:checked+.platinum-checkbox,
.media-platinum:hover input[type="checkbox"]:checked+.platinum-checkbox {
    border-color: var(--foreground);
}

.game-platinum:hover input[type="checkbox"]:not(:checked)+.platinum-checkbox,
.media-platinum:hover input[type="checkbox"]:not(:checked)+.platinum-checkbox {
    border-color: var(--foreground);
}

.game-platinum input[type="checkbox"]+.platinum-checkbox::after,
.media-platinum input[type="checkbox"]+.platinum-checkbox::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background-color: #888;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
    opacity: 0;
}

.game-platinum input[type="checkbox"]:checked+.platinum-checkbox::after,
.media-platinum input[type="checkbox"]:checked+.platinum-checkbox::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.game-platinum:hover input[type="checkbox"]:checked+.platinum-checkbox::after,
.media-platinum:hover input[type="checkbox"]:checked+.platinum-checkbox::after {
    background-color: var(--foreground);
}

.game-char-count,
.media-char-count {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    text-align: right;
    margin-bottom: 15px;
}

.game-submit-button,
.media-submit-button {
    align-self: flex-end;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.games-list,
.media-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-item,
.media-item,
.review-item {
    background: transparent;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.game-item .game-categories-display,
.media-item .media-categories-display {
    overflow: visible;
    z-index: 12;
}

.game-item .game-category-badge,
.media-item .media-category-badge {
    overflow: visible;
    z-index: 13;
}

.game-item::after,
.media-item::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at bottom right, var(--game-gradient-color, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.game-item:hover,
.media-item:hover,
.review-item:hover {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.game-item .game-content,
.media-item .media-content {
    text-align: left;
    overflow: visible;
    z-index: 10;
    position: relative;
}

.game-title,
.media-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 11;
    position: relative;
}

.media-title .media-year {
    color: var(--muted-foreground);
    font-weight: 400;
    margin-left: 10px;
}

.media-title>span {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 768px) {
    .media-title .media-year {
        margin-left: 0;
    }

    .media-title>span {
        margin-left: 0;
        justify-content: flex-start;
    }

    .media-rating {
        margin-left: 0 !important;
        order: -1;
    }
}

.game-title>span,
.media-title>span {
    display: inline-flex;
    gap: 15px;
    align-items: center;
}

.game-title>span {
    margin-left: auto;
    justify-content: flex-end;
}

.game-platinum-label,
.media-platinum-label {
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.platinum-img {
    height: 28px;
    object-fit: contain;
    display: flex;
    pointer-events: none;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.game-rating,
.media-rating {
    font-weight: 600;
    color: var(--primary);
    align-items: center;
}

.game-rating-placeholder {
    display: inline-block;
    width: 30px;
    height: 28px;
    visibility: hidden;
}

.game-rating.empty,
.media-rating.empty {
    display: none;
}

.game-rating.empty,
.media-rating.empty {
    display: none;
}

.game-comment,
.media-comment {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    min-height: 100px !important;
    margin-bottom: 10px;
}

.game-comment:has(+ .game-dates .suggestion-author-name),
.game-comment:has(+ .game-dates > span:nth-of-type(1):not(:empty)),
.media-comment:has(+ .media-dates > span:nth-of-type(1):not(:empty)) {
    margin-bottom: 10px;
}

.game-comment hr,
.media-comment hr {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid var(--border);
    width: 100%;
}

.game-dates,
.media-dates {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    display: flex;
    justify-content: space-between;
}

.suggestion-author-name {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.media-year {
    color: var(--muted-foreground);
    font-weight: 400;
}

.media-genres {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.game-divider,
.media-divider,
.review-divider {
    display: none;
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid var(--border);
    width: 100%;
}

.actions-wrapper {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: all 0.2s ease;
}

.actions-wrapper.active {
    display: block;
}

.game-actions,
.media-actions,
.review-actions {
    padding-top: 15px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.review-actions .review-action-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-item:hover .actions-wrapper.active,
.media-item:hover .actions-wrapper.active {
    max-height: 60px;
}

.review-item:hover .actions-wrapper,
.review-item.reply-open .actions-wrapper {
    max-height: 60px;
}

.review-reply-item {
    background: transparent;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
}

.review-replies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* Отменяем hover на родительских элементах при наведении на кнопку */
.review-item:has(.show-all-replies-btn:hover) {
    border: 1px solid var(--border) !important;
    background: transparent !important;
}

.review-item:has(.show-all-replies-btn:hover) .review-reply-item {
    border: 1px solid var(--border);
    background: transparent;
}

/* Сворачивание ответов */
.review-replies-list.collapsed .review-reply-item:nth-child(n+5) {
    display: none;
}

.review-replies-list .review-reply-item {
    animation: replyFadeIn 0.3s ease-out;
}

@keyframes replyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show-all-replies-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    width: fit-content;
    margin: 0 auto;
}

.show-all-replies-btn:hover:not(:has(.review-reply-form:hover)) {
    border: 1px solid var(--secondary);
    background: var(--secondary);
    color: var(--foreground);
}

.show-all-replies-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.show-all-replies-btn.expanded svg {
    transform: rotate(180deg);
}

.review-reply-item-inner {
    display: flex;
    gap: 12px;
    width: 100%;
}

.review-reply-item:hover:not(:has(.review-reply-form:hover)):not(:has(.show-all-replies-btn:hover)) {
    border: 1px solid var(--secondary);
    background: var(--secondary);
}

.review-item:has(.review-reply-item:hover):not(:has(.show-all-replies-btn:hover)) {
    border: 1px solid var(--border) !important;
    background: transparent !important;
}

.review-reply-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    text-transform: uppercase;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.review-reply-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-reply-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-reply-item-nickname {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
}

.review-reply-item-nickname-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.review-reply-item-actions-wrapper {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: all 0.2s ease;
}

.review-reply-item:hover .review-reply-item-actions-wrapper {
    max-height: 60px;
}

.review-reply-item-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 10px;
}

.review-reply-item-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: none;
    border: 1px solid var(--muted-foreground);
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.review-reply-item-action-btn:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}

.review-reply-item-action-btn.delete-reply:hover {
    color: var(--destructive);
    border-color: var(--destructive);
}

.review-reply-item-action-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.review-reply-item-action-text-wrap {
    display: inline-flex;
    margin-left: 5px;
}

.review-reply-item-action-text {
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.review-reply-item-timer {
    display: none;
    align-items: center;
    gap: 4px;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    margin-right: 2px;
}

.review-reply-item-timer svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.review-reply-item-timer-text {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Таймер в модалке редактирования ответа - как в модалке комментария */
.edit-reply-modal-content .info-title .review-reply-item-timer {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--muted-foreground) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
}

.edit-reply-modal-content .info-title .review-reply-item-timer svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.edit-reply-modal-content .info-title .review-reply-item-timer-text {
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
}

/* Мобильная версия - таймер на новой строке */
@media (max-width: 768px) {
    .edit-reply-modal-content .info-title {
        flex-wrap: wrap !important;
    }

    .edit-reply-modal-content .info-title .icon-text {
        width: 100% !important;
    }

    .edit-reply-modal-content .info-title .review-reply-item-timer {
        margin-left: 0 !important;
        margin-top: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

.review-reply-item-message {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.review-reply-item-dates {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.review-reply-item-like-block {
    display: flex;
    align-items: center;
    gap: 4px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.review-reply-item-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.review-reply-item-like-btn svg {
    width: 16px;
    height: 16px;
}

.review-reply-item-like-btn svg path {
    fill: var(--muted-foreground);
    fill-opacity: 0;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill-opacity 0.2s ease;
}

.review-reply-item-like-btn:hover svg path {
    fill-opacity: 1;
}

.review-reply-item-like-btn.liked {
    color: #ef4444;
}

.review-reply-item-like-btn.liked svg path {
    fill: #ef4444;
    fill-opacity: 1;
    stroke: #ef4444;
}

.review-reply-item-like-count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.review-reply-item-date {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.game-action-button,
.media-action-button,
.review-action-button {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    transition: opacity 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--muted-foreground);
    padding: 6px 12px;
    border-radius: 8px;
    background: none;
    opacity: 1;
}

.review-action-button.review-edit-timer {
    border: none;
    padding: 0;
    margin-left: 10px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.game-action-button.review-edit-timer {
    border: none;
    padding: 0;
    margin-left: 0;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 1;
    background: none;
    display: inline-flex;
}

.game-action-button.review-edit-timer:hover {
    color: var(--muted-foreground);
    border-color: transparent;
    background: none;
}

.game-action-button svg,
.media-action-button svg,
.review-action-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.game-action-button:hover,
.media-action-button:hover,
.review-action-button:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}

.review-action-button.review-edit-timer:hover {
    color: var(--muted-foreground);
    background: none;
}

.delete-game:hover,
.delete-media:hover,
.delete-review:hover,
.delete-suggestion:hover {
    color: var(--destructive);
    border-color: var(--destructive);
}

.game-actions .actions-divider,
.media-actions .actions-divider,
.review-actions .actions-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: var(--muted-foreground);
    margin-left: 12px;
    margin-right: 2px;
    vertical-align: middle;
    opacity: 0.5;
}

.edit-game-modal,
.edit-media-modal,
.edit-review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.edit-game-modal.active,
.edit-media-modal.active,
.edit-review-modal.active {
    display: flex;
}

.edit-game-modal-content,
.edit-media-modal-content,
.edit-review-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
}

.edit-game-modal-content .game-card,
.edit-media-modal-content .media-card {
    overflow: hidden;
    max-width: 100%;
}

.edit-game-modal-content .game-content,
.edit-media-modal-content .media-content {
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.edit-game-modal-content .game-submit-row,
.edit-media-modal-content .media-submit-row {
    overflow: visible;
    min-width: 0;
    max-width: 100%;
}

.edit-game-modal-content .game-categories-dropdown,
.edit-media-modal-content .media-categories-dropdown {
    z-index: 10000 !important;
}

.edit-game-modal-content .game-categories-dropdown.active,
.edit-media-modal-content .media-categories-dropdown.active {
    overflow-y: auto !important;
    max-height: 300px;
}

.edit-game-modal-content .game-categories-select,
.edit-media-modal-content .media-categories-select {
    overflow: visible !important;
}

.edit-game-modal-content .game-categories-wrapper,
.edit-media-modal-content .media-categories-wrapper {
    overflow: visible !important;
}

.edit-game-modal-content .game-submit-row,
.edit-media-modal-content .media-submit-row {
    overflow: visible !important;
}

.edit-game-modal-content .game-content,
.edit-media-modal-content .media-content {
    overflow: visible !important;
}

.edit-game-modal-content .game-card,
.edit-media-modal-content .media-card {
    overflow: visible !important;
}

.edit-game-modal-content {
    --modal-gradient-color: rgba(139, 92, 246, 0.2);
}

.edit-media-modal-content {
    --modal-gradient-color: rgba(236, 72, 153, 0.2);
}

.edit-review-modal-content {
    --modal-gradient-color: rgba(6, 182, 212, 0.2);
}

.edit-reply-modal-content {
    --modal-gradient-color: rgba(6, 182, 212, 0.2);
}

.edit-reply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.edit-reply-modal.active {
    display: flex;
}

.edit-reply-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
}

.edit-reply-form {
    margin-top: 20px;
}

.edit-reply-submit-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    align-self: flex-end;
}



.edit-game-modal-content .game-card,
.edit-media-form,
.edit-review-form {
    margin-top: 20px;
}

.edit-game-submit-button,
.edit-media-submit-button,
.edit-review-submit-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    align-self: flex-end;
}

.edit-game-modal-content .info-title,
.edit-game-modal-content .info-text,
.edit-media-modal-content .info-title,
.edit-media-modal-content .info-text,
.edit-review-modal-content .info-title,
.edit-review-modal-content .info-text,
.edit-reply-modal-content .info-title,
.edit-reply-modal-content .info-text {
    text-align: left !important;
    display: block;
}

.edit-game-modal-content .info-title,
.edit-review-modal-content .info-title,
.edit-reply-modal-content .info-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.edit-review-modal-content .info-title .icon-text,
.edit-reply-modal-content .info-title .icon-text,
.edit-game-modal-content .info-title .icon-text {
    display: flex;
    align-items: center;
}

.edit-review-modal-content .info-title .review-edit-timer,
.edit-reply-modal-content .info-title .review-edit-timer,
.edit-game-modal-content .info-title .review-edit-timer {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--muted-foreground) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
}

.edit-review-modal-content .info-title .review-edit-timer svg,
.edit-reply-modal-content .info-title .review-edit-timer svg,
.edit-game-modal-content .info-title .review-edit-timer svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.edit-review-modal-content .info-title .review-edit-timer-text,
.edit-reply-modal-content .info-title .review-edit-timer-text,
.edit-game-modal-content .info-title .review-edit-timer-text {
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" !important;
}

/* Мобильная версия - таймер на новой строке */
@media (max-width: 768px) {
    .edit-review-modal-content .info-title,
    .edit-reply-modal-content .info-title,
    .edit-game-modal-content .info-title {
        flex-wrap: wrap !important;
    }

    .edit-review-modal-content .info-title .icon-text,
    .edit-reply-modal-content .info-title .icon-text,
    .edit-game-modal-content .info-title .icon-text {
        width: 100% !important;
    }

    .edit-review-modal-content .info-title .review-edit-timer,
    .edit-reply-modal-content .info-title .review-edit-timer,
    .edit-game-modal-content .info-title .review-edit-timer {
        margin-left: 0 !important;
        margin-top: 8px !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .review-action-button.review-edit-timer {
        margin-left: 0 !important;
    }
}

.reset-timer-button {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.reset-timer-button:hover {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.reset-timer-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-overlay-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
    --modal-gradient-color: rgba(139, 92, 246, 0.2);
}

.media-search-overlay {
    --modal-gradient-color: rgba(236, 72, 153, 0.2);
}

.search-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    gap: 15px;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    max-height: calc(50vh + 3px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 3px;
}

.search-result-item {
    display: flex;
    padding: 8px;
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.search-result-item:hover {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.search-result-image {
    width: 48px;
    height: 64px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    gap: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: auto;
}

.search-result-title {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.search-result-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: normal;
}

.search-result-year {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: normal;
}

.search-result-genres {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    text-align: left;
}

.search-result-description {
    font-size: 0.9rem;
    color: var(--foreground);
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.search-error {
    color: #ff5555;
    font-size: 0.9rem;
    text-align: center;
    padding: 8px;
}

.small-text {
    font-size: 0.4rem;
    color: var(--muted-foreground);
}

.search-result-image-no-cover {
    width: 48px;
    height: 64px;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.game-image-no-cover,
.media-image-no-cover {
    width: 48px;
    height: 64px;
    border-radius: 4px;
    background-color: var(--input);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--muted-foreground);
    text-align: center;
    font-size: 0.9rem;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sidebar-overlay.active {
    pointer-events: auto;
}

.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.delete-modal.active {
    display: flex;
}

.delete-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
    --modal-gradient-color: rgba(239, 68, 68, 0.2);
}

.delete-modal .info-title {
    text-align: left;
    display: block;
}

.delete-modal .info-text {
    text-align: left;
    margin-bottom: 20px;
}

.delete-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

#delete-reply-modal .delete-modal-content {
    --modal-gradient-color: rgba(239, 68, 68, 0.2);
}

.cancel-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.delete-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--destructive);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.notification-modal.active {
    display: flex;
}

.notification-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
    background-repeat: no-repeat;
    --modal-gradient-color: rgba(234, 179, 8, 0.2);
}

.notification-modal .info-title {
    text-align: left;
    display: block;
}

.notification-modal .info-text {
    text-align: left;
    margin-bottom: 20px;
}

.notification-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin: 0 auto;
    display: block;
}

.delete-modal .icon-text svg[data-lucide="trash-2"] {
    color: var(--destructive);
}

.notification-modal .icon-text svg[data-lucide="triangle-alert"] {
    color: #eab308;
}

.notification-modal .icon-text svg[data-lucide="timer-reset"] {
    color: #eab308;
}

.reset-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: #eab308;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.floating-group {
    position: relative;
    display: block;
    width: 100%;
}

.floating-group.title-input-group {
    display: flex;
    align-items: stretch;
}

.floating-group.game-title-group {
    margin-bottom: 15px;
}

.floating-group.title-input-group .floating-input {
    flex: 1;
    min-width: 0;
}

.floating-group.title-input-group .floating-fieldset {
    border-radius: 12px;
}

.floating-group.title-input-group .floating-label {
    max-width: calc(100% - 80px);
}

.search-btn-wrapper {
    display: flex;
    align-items: stretch;
    padding: 1px 1px 0.5px 0;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0 11.25px 11.25px 0;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--muted-foreground);
    flex-shrink: 0;
    overflow: hidden;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    fill: none;
}

.search-btn .search-btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--foreground);
}

.search-btn:hover svg,
.search-btn:hover .search-btn-text {
    color: var(--foreground);
}

.floating-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none;
    padding: 12px;
    font-size: 1rem;
    color: var(--foreground);
    z-index: 2;
    position: relative;
    box-shadow: none !important;
    height: 100%;
    border-radius: 0 !important;
}

.floating-input:-webkit-autofill,
.floating-input:-webkit-autofill:hover, 
.floating-input:-webkit-autofill:focus, 
.floating-input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--background) inset !important;
    -webkit-text-fill-color: var(--foreground) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.floating-group .game-title-input, 
.floating-group .game-comment-input, 
.floating-group .game-meta-input,
.floating-group .media-title-input,
.floating-group .media-comment-input,
.floating-group .media-meta-input,
.floating-group .review-nickname-input,
.floating-group .review-message-input,
.floating-group .review-reply-nickname-input,
.floating-group .review-reply-message-input,
.floating-group .search-input,
.floating-group .card-input,
.floating-group .game-search-input,
.floating-group .media-search-input,
.floating-group .auth-input {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.floating-group .game-search-input,
.floating-group .media-search-input {
    padding-left: 41.1px;
}

.floating-group.game-comment-group,
.floating-group.media-comment-group {
    margin-bottom: 15px !important;
}

.floating-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--muted-foreground);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0 1px;
    transform-origin: left top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.floating-label.with-icon {
    left: 40px;
    max-width: calc(100% - 52px);
}

.floating-fieldset {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    bottom: 0px;
    margin: 0;
    padding: 0 8px;
    pointer-events: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    z-index: 4;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.floating-input:-webkit-autofill,
.floating-input:-webkit-autofill:hover,
.floating-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--background) inset !important;
    -webkit-text-fill-color: var(--foreground) !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea.floating-input ~ .floating-label {
    top: 24px;
    transform: translateY(-50%);
}

.floating-legend {
    width: auto;
    max-width: 0.01px;
    max-width: 0;
    height: 11px;
    font-size: 0.8rem;
    padding: 0;
    visibility: hidden;
    transition: max-width 0.1s ease;
    white-space: nowrap;
}

.floating-legend span {
    opacity: 0;
}

.floating-input:not(:placeholder-shown) ~ .floating-fieldset,
.floating-input:-webkit-autofill ~ .floating-fieldset {
    border-color: var(--border);
}

.floating-input:not(:placeholder-shown) ~ .floating-label,
.floating-input:-webkit-autofill ~ .floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    color: var(--muted-foreground);
}

.floating-input:focus ~ .floating-fieldset {
    border-color: var(--primary);
    border-width: 1px;
}

.floating-input:focus ~ .floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.8);
    color: var(--primary);
}

.floating-label.with-icon {
    left: 12px;
    transform: translate(28px, -50%);
    max-width: calc(100% - 52px);
}

.floating-group .floating-input:focus ~ .floating-label.with-icon,
.floating-group .floating-input:not(:placeholder-shown) ~ .floating-label.with-icon,
.floating-group .floating-input:-webkit-autofill ~ .floating-label.with-icon {
    transform: translate(0, -50%) scale(0.8);
    color: var(--primary);
}

.floating-input:focus ~ .floating-fieldset .floating-legend,
.floating-input:not(:placeholder-shown) ~ .floating-fieldset .floating-legend,
.floating-input:-webkit-autofill ~ .floating-fieldset .floating-legend {
    max-width: 100%;
    visibility: visible;
    padding: 0 4px;
}

textarea.floating-input {
    resize: vertical;
}

.auth-modal-content {
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
    background-image:
        radial-gradient(circle at -10% -10%, rgba(239, 68, 68, 0.2) 0%, transparent 300px),
        radial-gradient(circle at 120% 120%, rgba(239, 68, 68, 0.2) 0%, transparent 300px);
    background-repeat: no-repeat;
}

.auth-modal-content .floating-fieldset {
    z-index: 4;
}

.api-search-group .floating-input:focus:placeholder-shown ~ .floating-label {
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    max-width: calc(100% - 24px);
    left: 12px;
}

.api-search-group .floating-input:focus:placeholder-shown ~ .floating-fieldset {
    border-color: var(--primary);
    border-width: 1px;
}

.api-search-group .floating-input:focus:placeholder-shown ~ .floating-fieldset .floating-legend {
    max-width: 0;
    visibility: hidden;
    padding: 0;
}

.game-search-icon svg,
.game-edit-icon svg {
    stroke: #8b5cf6 !important;
}

.media-search-icon svg,
.media-edit-icon svg {
    stroke: #ec4899 !important;
}

.review-edit-icon svg {
    stroke: #06b6d4 !important;
}

@media (max-width: 768px) {

    .navbar-twitch,
    .navbar-date {
        display: none !important;
    }

    .burger-menu {
        display: flex;
    }

    .navbar {
        margin: 10px 15px;
        padding: 0 15px;
        height: 60px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-slogan {
        font-size: 0.8rem;
    }

    .brand-name {
        margin-bottom: 2px;
    }

    .live-label {
        font-size: 0.6rem;
        padding: 1px 4px;
        bottom: -6px;
    }

    .sidebar {
        position: fixed;
        left: -350px;
        top: 80px;
        bottom: 10px;
        width: 290px;
        margin: 0 0 0 15px;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 16px;
        background-color: var(--sidebar);
        border: 1px solid var(--sidebar-border);
        overflow-x: hidden;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar::before {
        content: '';
        position: absolute;
        top: -460px;
        left: -480px;
        width: 960px;
        height: 960px;
        background: radial-gradient(circle at top left, rgba(128, 128, 128, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }

    .sidebar::after {
        content: '';
        position: absolute;
        bottom: -460px;
        right: -480px;
        width: 960px;
        height: 960px;
        background: radial-gradient(circle at bottom right, rgba(128, 128, 128, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }

    .layout {
        padding-top: 60px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        max-width: 100vw;
    }

    .timer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .timer-card {
        padding: 20px 15px;
    }

    .timer-value {
        font-size: 2.5rem;
    }

    .timer-label {
        font-size: 0.9rem;
    }

    .human-time {
        padding: 20px;
        font-size: 1.1rem;
    }

    .info-section {
        padding: 20px;
    }

    .info-title {
        font-size: 1.3rem;
    }

    .info-text {
        font-size: 1rem;
    }

    .price-grid {
        flex-direction: column;
        gap: 10px;
    }

    .price-card {
        max-width: 100%;
        min-width: 100%;
    }

    .price-title {
        text-align: center;
    }

    .price-content {
        align-items: center;
        justify-content: center;
    }

    .price-value {
        text-align: center;
    }

    .game-card,
    .game-item,
    .media-card,
    .media-item {
        flex-direction: column;
        padding: 20px;
    }

    .game-image,
    .media-image {
        width: 100%;
        height: 200px;
    }

    .game-comment,
    .media-comment {
        min-height: 0 !important;
        margin-bottom: 10px;
    }

    .game-comment:has(+ .game-dates .suggestion-author-name),
    .game-comment:has(+ .game-dates > span:nth-of-type(1):not(:empty)),
    .media-comment:has(+ .media-dates > span:nth-of-type(1):not(:empty)) {
        margin-bottom: 15px;
    }

    .game-title,
    .media-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .game-title>span,
    .media-title>span {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }

    .game-title span:empty {
        display: none;
    }

    .media-title .media-year {
        margin-left: 0;
    }

    .media-title span {
        align-self: flex-start;
    }

    .game-dates,
    .media-dates {
        flex-direction: column;
        gap: 10px;
    }

    .game-dates span:empty,
    .media-dates span:empty {
        display: none;
    }

    .game-dates .created-at,
    .media-dates .created-at {
        text-align: left;
    }

    .game-divider,
    .media-divider {
        display: block;
    }

    .review-divider {
        display: block;
    }

    .review-dates {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .review-dates .created-at {
        text-align: left;
    }

    .review-date {
        text-align: left;
    }

    .review-card,
    .review-item {
        flex-direction: column;
        padding: 20px;
    }

    .review-avatar {
        display: none !important;
    }

    .review-item.reply-open,
    .review-item.reply-open:hover {
        border: 1px solid var(--border);
        background: transparent;
    }

    .review-reply-form {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .review-reply-avatar {
        display: none !important;
    }

    .review-reply-actions {
        flex-direction: column;
        gap: 10px;
    }

    .review-reply-cancel,
    .review-reply-submit {
        width: 100%;
        justify-content: center;
        padding: 6px 12px;
    }

    .support-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .support-button,
    .telegram-button {
        width: 100%;
        text-align: left;
    }

    .pagination {
        gap: 10px;
    }

    .pagination-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 80px;
    }

    .modal-content,
    .edit-game-modal-content,
    .edit-media-modal-content,
    .edit-review-modal-content,
    .edit-reply-modal-content,
    .delete-modal-content,
    .notification-modal-content {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content,
    .edit-game-modal-content,
    .edit-media-modal-content,
    .edit-review-modal-content,
    .edit-reply-modal-content,
    .auth-modal-content,
    .search-overlay-content,
    .delete-modal-content,
    .notification-modal-content {
        background-image:
            radial-gradient(circle at -15% -15%, var(--modal-gradient-color, transparent) 0%, transparent 300px),
            radial-gradient(circle at 130% 130%, var(--modal-gradient-color, transparent) 0%, transparent 300px);
        background-repeat: no-repeat;
    }

    .search-overlay-content {
        padding: 20px;
    }

    .subnav-list {
        gap: 10px;
    }

    .subnav-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    #completed-form .game-meta {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    #completed-form .game-meta #completed-rating {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    #completed-form .game-meta .game-platinum {
        grid-column: 3;
        grid-row: 1;
    }

    #completed-form .game-meta #completed-day {
        grid-column: 1;
        grid-row: 2;
    }

    #completed-form .game-meta #completed-month {
        grid-column: 2;
        grid-row: 2;
    }

    #completed-form .game-meta #completed-year {
        grid-column: 3;
        grid-row: 2;
    }

    #edit-game-form .game-meta {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    #edit-game-form .game-meta #edit-game-rating {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    #edit-game-form .game-meta .game-platinum {
        grid-column: 3;
        grid-row: 1;
    }

    #edit-game-form .game-meta #edit-game-day {
        grid-column: 1;
        grid-row: 2;
    }

    #edit-game-form .game-meta #edit-game-month {
        grid-column: 2;
        grid-row: 2;
    }

    #edit-game-form .game-meta #edit-game-year {
        grid-column: 3;
        grid-row: 2;
    }

    .media-year {
        margin-left: 0 !important;
    }

    .media-title>span {
        margin-left: 0 !important;
        justify-content: flex-start;
    }

    .media-rating {
        margin-left: 0 !important;
        order: -1;
    }

    .media-title .media-year {
        margin-left: 0;
    }

    @media (max-width: 768px) {
        #games .game-title>span {
            margin-left: 0 !important;
            justify-content: flex-start !important;
        }

        #games .game-rating:not(.empty),
        #games .game-rating-placeholder {
            order: -1 !important;
        }

        .floating-group.game-comment-group,
        .floating-group.media-comment-group {
            margin-bottom: 15px !important;
        }
    }

    .media-meta {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .media-meta .floating-group:first-child {
        grid-column: span 3;
    }

    .media-meta .floating-group:nth-of-type(2),
    .media-meta .floating-group:nth-of-type(3),
    .media-meta .floating-group:nth-of-type(4) {
        grid-column: span 1;
        min-width: 0;
    }

    .media-meta .media-meta-row {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    .game-rating.empty {
        display: none;
    }

    .edit-media-meta-input {
        margin-bottom: 10px;
    }

    .delete-modal-buttons {
        flex-direction: column-reverse;
        display: flex;
        gap: 10px;
    }

    .delete-modal-buttons .cancel-button,
    .delete-modal-buttons .delete-button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .game-actions,
    .media-actions,
    .review-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        display: flex;
    }

    .game-item:hover .actions-wrapper.active,
    .media-item:hover .actions-wrapper.active,
    .review-item:hover .actions-wrapper,
    .review-item.reply-open .actions-wrapper {
        max-height: 170px;
    }

    .review-reply-item {
        padding: 12px 15px;
        flex-direction: column;
        gap: 0;
    }

    .review-replies-list {
        gap: 10px;
    }

    .review-reply-item-inner {
        gap: 10px;
    }

    .review-reply-item-avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
        display: none;
    }

    .review-reply-item-date {
        flex-direction: column;
        gap: 4px;
    }

    .review-reply-item-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .game-action-button,
    .media-action-button,
    .review-action-button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media print {
    body {
        background-color: white;
        color: black;
    }

    .navbar,
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .stream-dot {
        display: none;
    }
}

/* ============================================================
   КАТЕГОРИИ/ТЕГИ ДЛЯ ИГР, ФИЛЬМОВ И СЕРИАЛОВ
   ============================================================ */

/* Контейнер для кнопки категорий и кнопки отправки */
.game-submit-row,
.media-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 100;
    overflow: visible !important;
    position: relative;
    max-width: 100% !important;
    min-width: 0 !important;
}

.game-categories-wrapper,
.media-categories-wrapper {
    flex: 1 !important;
    display: flex;
    align-items: center;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Селектор категорий */
.game-categories-select,
.media-categories-select {
    flex: 1 !important;
    position: relative;
    overflow: visible !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Ограничение ширины для форм добавления */
.game-form,
.media-form {
    max-width: 100% !important;
    min-width: 0 !important;
}

.game-form .game-categories-trigger,
.media-form .media-categories-trigger {
    overflow: hidden !important;
    max-width: 100% !important;
}

.game-form .selected-categories-preview,
.media-form .selected-categories-preview {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Разрешить overflow для dropdown в формах добавления */
.game-form .game-categories-select,
.game-form .game-categories-wrapper,
.game-form .game-categories-dropdown:not(.active) {
    overflow: visible !important;
    max-width: 100% !important;
}

.game-form .game-categories-dropdown.active {
    overflow-y: auto !important;
    max-height: 275px;
}

.game-form .game-submit-row,
.game-form .game-content,
.game-form .game-card {
    overflow: visible !important;
    max-width: 100% !important;
}

.media-form .media-categories-select,
.media-form .media-categories-wrapper,
.media-form .media-categories-dropdown:not(.active) {
    overflow: visible !important;
    max-width: 100% !important;
}

.media-form .media-categories-dropdown.active {
    overflow-y: auto !important;
    max-height: 300px;
}

.media-form .media-submit-row,
.media-form .media-content,
.media-form .media-card {
    overflow: visible !important;
    max-width: 100% !important;
}

.game-categories-trigger,
.media-categories-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--foreground);
    height: 46px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    outline: none;
}

button.game-categories-trigger:focus,
button.media-categories-trigger:focus {
    outline: none;
    box-shadow: none;
}

.game-categories-trigger:hover,
.media-categories-trigger:hover {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.game-categories-trigger.active,
.media-categories-trigger.active {
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.game-categories-trigger:hover .categories-arrow,
.media-categories-trigger:hover .categories-arrow {
    color: var(--foreground);
}

.game-categories-trigger.active .categories-arrow,
.media-categories-trigger.active .categories-arrow {
    color: var(--foreground);
}

.categories-arrow {
    width: 16px;
    height: 16px;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
    margin-left: auto;
    background: transparent !important;
    flex-shrink: 0;
    fill: none !important;
    stroke: currentColor !important;
    pointer-events: none;
}

.categories-arrow * {
    fill: none !important;
    stroke: currentColor !important;
}

.categories-arrow.active {
    transform: rotate(180deg);
}

.categories-icon {
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    flex-shrink: 0;
    pointer-events: none;
}

.game-categories-trigger:hover .categories-icon,
.media-categories-trigger:hover .categories-icon {
    color: var(--foreground);
}

.game-categories-trigger.active .categories-icon,
.media-categories-trigger.active .categories-icon {
    color: var(--foreground);
}

.categories-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.selected-categories-preview:has(.selected-category-chip) .categories-text {
    display: none;
}

.game-categories-trigger:hover .categories-text,
.media-categories-trigger:hover .categories-text {
    color: var(--foreground);
}

.game-categories-trigger.active .categories-text,
.media-categories-trigger.active .categories-text {
    color: var(--foreground);
}

/* Выбранные категории - превью */
.selected-categories-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.selected-categories-preview::-webkit-scrollbar {
    display: none;
}

.selected-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0 !important;
    max-width: 100% !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.selected-category-chip .category-icon {
    width: 14px;
    height: 14px;
}

/* Цвета чипов */
.selected-category-chip.favorite {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.selected-category-chip.recommend {
    background: rgba(47, 179, 68, 0.12);
    color: #2fb344;
}

.selected-category-chip.memorable {
    background: rgba(245, 159, 0, 0.12);
    color: #f59f00;
}

.selected-category-chip.on_one_breath {
    background: rgba(247, 103, 7, 0.12);
    color: #f76707;
}

.selected-category-chip.game_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.selected-category-chip.movie_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.selected-category-chip.series_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.selected-category-chip.hidden_gem {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}

.selected-category-chip.replay_worthy {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.selected-category-chip.completed_hard {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.selected-category-chip.challenging {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.selected-category-chip.one_time {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.selected-category-chip.smart {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.selected-category-chip.great_story {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.selected-category-chip.soundtrack {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.selected-category-chip.soundtrack svg {
    fill: #22c55e;
}

.selected-category-chip.cinema {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.selected-category-chip.too_hard {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.selected-category-chip.moon {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.selected-category-chip.mouse_pointer {
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
}

.selected-category-chip.bubbles {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.selected-category-chip.haha {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.selected-category-chip.disappointed {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.selected-category-chip.poo {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.selected-category-chip.boom {
    background: rgba(132, 204, 22, 0.12);
    color: #84cc16;
}

.selected-category-chip.trash {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.selected-category-chip.buggy {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

/* Dropdown с категориями */
.game-categories-dropdown,
.media-categories-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    z-index: 1001;
    animation: slideUp 0.2s ease;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.game-categories-dropdown.active,
.media-categories-dropdown.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-category-item,
.media-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.game-category-item:hover,
.media-category-item:hover {
    background: rgba(128, 128, 128, 0.08);
}

.category-checkbox {
    display: none;
}

.category-checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.game-category-item:hover .category-checkbox-custom,
.media-category-item:hover .category-checkbox-custom {
    border-color: var(--foreground) !important;
}

.category-checkbox:checked + .category-checkbox-custom {
    background: transparent;
    border-color: #888;
}

.category-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background-color: #888;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
    opacity: 0;
}

.category-checkbox:checked + .category-checkbox-custom::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.game-category-item:hover .category-checkbox:checked + .category-checkbox-custom::after,
.media-category-item:hover .category-checkbox:checked + .category-checkbox-custom::after {
    background-color: var(--foreground);
}

.category-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon.ti {
    font-size: 18px;
}

.category-favorite {
    color: #ef4444;
    fill: #ef4444;
}

.category-recommend {
    color: #2fb344;
    fill: #2fb344;
}

.category-memorable {
    color: #f59f00;
    fill: #f59f00;
}

.category-on_one_breath {
    color: #f76707;
    fill: #f76707;
}

.category-game_of_the_year {
    color: #d946ef;
    fill: #d946ef;
}

.category-movie_of_the_year {
    color: #d946ef;
    fill: #d946ef;
}

.category-series_of_the_year {
    color: #d946ef;
    fill: #d946ef;
}

.category-hidden_gem {
    color: #06b6d4;
    fill: #06b6d4;
}

.category-replay_worthy {
    color: #ec4899;
    fill: #ec4899;
}

.category-completed_hard {
    color: #a855f7;
    fill: #a855f7;
}

.category-challenging {
    color: #f43f5e;
    fill: #f43f5e;
}

.category-one_time {
    color: #14b8a6;
    fill: #14b8a6;
}

.category-smart {
    color: #8b5cf6;
    fill: #8b5cf6;
}

.category-great_story {
    color: #f59e0b;
    fill: #f59e0b;
}

.category-soundtrack {
    color: #22c55e;
}

.category-soundtrack svg {
    fill: #22c55e;
}

.category-cinema {
    color: #38bdf8;
    fill: #38bdf8;
}

.category-too_hard {
    color: #6366f1;
    fill: #6366f1;
}

.category-moon {
    color: #a855f7;
    fill: #a855f7;
}

.category-mouse_pointer {
    color: #17a2b8;
    fill: #17a2b8;
}

.category-bubbles {
    color: #0ea5e9;
    fill: #0ea5e9;
}

.category-haha {
    color: #fbbf24;
    fill: #fbbf24;
}

.category-disappointed {
    color: #ec4899;
    fill: #ec4899;
}

.category-poo {
    color: #d97706;
    fill: #d97706;
}

.category-boom {
    color: #84cc16;
    fill: #84cc16;
}

.category-trash {
    color: #dc2626;
    fill: #dc2626;
}

.category-buggy {
    color: #f97316;
    fill: #f97316;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
    pointer-events: none;
}

/* Кнопка отправки */
.game-submit-button,
.media-submit-button {
    flex-shrink: 0;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    height: 46px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Badge на карточках */
.game-categories-display,
.media-categories-display {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 10px;
    align-items: center;
    z-index: 12;
    overflow: visible;
    position: relative;
}

.game-category-badge,
.media-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    z-index: 13;
}

.game-category-badge .category-icon,
.media-category-badge .category-icon {
    width: 14px;
    height: 14px;
}

/* Цвета badge */
.game-category-badge.favorite,
.media-category-badge.favorite {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.game-category-badge.recommend,
.media-category-badge.recommend {
    background: rgba(47, 179, 68, 0.12);
    color: #2fb344;
}

.game-category-badge.memorable,
.media-category-badge.memorable {
    background: rgba(245, 159, 0, 0.12);
    color: #f59f00;
}

.game-category-badge.on_one_breath,
.media-category-badge.on_one_breath {
    background: rgba(247, 103, 7, 0.12);
    color: #f76707;
}

.game-category-badge.game_of_the_year,
.media-category-badge.game_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.game-category-badge.movie_of_the_year,
.media-category-badge.movie_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.game-category-badge.series_of_the_year,
.media-category-badge.series_of_the_year {
    background: rgba(217, 70, 239, 0.12);
    color: #d946ef;
}

.game-category-badge.hidden_gem,
.media-category-badge.hidden_gem {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}

.game-category-badge.replay_worthy,
.media-category-badge.replay_worthy {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.game-category-badge.completed_hard,
.media-category-badge.completed_hard {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.game-category-badge.challenging,
.media-category-badge.challenging {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
}

.game-category-badge.one_time,
.media-category-badge.one_time {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.game-category-badge.smart,
.media-category-badge.smart {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.game-category-badge.great_story,
.media-category-badge.great_story {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.game-category-badge.soundtrack,
.media-category-badge.soundtrack {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.game-category-badge.soundtrack svg,
.media-category-badge.soundtrack svg {
    fill: #22c55e;
}

.game-category-badge.cinema,
.media-category-badge.cinema {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.game-category-badge.too_hard,
.media-category-badge.too_hard {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.game-category-badge.moon,
.media-category-badge.moon {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.game-category-badge.mouse_pointer,
.media-category-badge.mouse_pointer {
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
}

.game-category-badge.bubbles,
.media-category-badge.bubbles {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
}

.game-category-badge.haha,
.media-category-badge.haha {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.game-category-badge.disappointed,
.media-category-badge.disappointed {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.game-category-badge.poo,
.media-category-badge.poo {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.game-category-badge.boom,
.media-category-badge.boom {
    background: rgba(132, 204, 22, 0.12);
    color: #84cc16;
}

.game-category-badge.trash,
.media-category-badge.trash {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.game-category-badge.buggy,
.media-category-badge.buggy {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

/* Тултип для badge на карточке */
.game-category-badge,
.media-category-badge {
    position: relative;
}

.game-category-badge .badge-tooltip,
.media-category-badge .badge-tooltip {
    position: fixed;
    bottom: auto;
    left: 0;
    top: 0;
    transform: none;
    background: var(--background);
    color: var(--foreground);
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1000000 !important;
    margin-bottom: 0;
    max-width: 200px;
    will-change: left, top;
    display: block;
}

.game-category-badge:hover .badge-tooltip,
.media-category-badge:hover .badge-tooltip,
.game-category-badge.active .badge-tooltip,
.media-category-badge.active .badge-tooltip {
    opacity: 1;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .game-submit-row,
    .media-submit-row {
        flex-direction: column;
        gap: 12px;
    }

    .suggestions-submit-row .game-submit-button {
        margin-left: 0;
    }

    .game-categories-wrapper,
    .media-categories-wrapper {
        width: 100%;
    }

    .game-submit-button,
    .media-submit-button {
        width: 100%;
        padding: 14px 28px;
    }

    .game-categories-dropdown,
    .media-categories-dropdown {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 40px);
        max-width: 420px;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 16px;
        padding: 14px;
    }

    .game-categories-display,
    .media-categories-display {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        margin-bottom: 8px;
        width: 100%;
    }

    .game-item .game-title,
    .media-item .media-title {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .game-item .game-categories-display,
    .media-item .media-categories-display {
        order: -1;
        width: 100%;
    }

    .game-category-badge .badge-tooltip,
    .media-category-badge .badge-tooltip {
        pointer-events: auto;
        cursor: pointer;
    }

    .selected-categories-preview {
        max-width: 100%;
    }

    /* Кнопки действий в ответах - мобильная версия */
    .review-reply-item-nickname-wrap {
        position: static !important;
    }

    .review-reply-item-actions-wrapper {
        display: block !important;
        overflow: hidden;
        max-height: 0;
        transition: all 0.2s ease;
    }

    .review-reply-item:hover .review-reply-item-actions-wrapper {
        max-height: 120px;
    }

    .review-reply-item-actions-wrapper .review-reply-item-actions {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px !important;
    }

    .review-reply-item-action-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }

    .review-reply-item-action-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    .review-reply-item-action-text-wrap {
        margin-left: 6px !important;
    }

    .review-reply-item-action-text {
        font-size: 0.9rem !important;
    }

    .review-reply-item-timer {
        order: -1 !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        margin-right: 0 !important;
    }

    .review-reply-item-timer svg {
        width: 14px !important;
        height: 14px !important;
    }

    .game-actions .actions-divider,
    .media-actions .actions-divider,
    .review-actions .actions-divider {
        display: none !important;
    }
}