.pro-rating-dark {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e0e0e0;
}

.results-compact {
    background: rgb(10 10 10 / 80%);
    padding: 20px;
    margin:20px 0 10px;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid #1f1c24;
}

.main-score-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .main-score-row {
        flex-direction: row-reverse;
        gap: 15px;
        margin-bottom: 12px;
        margin-top:5px;
    }
}

.rating-bars-compact {
    flex: 1;
    min-width: 0;
}

.rating-bars-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-mini {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap:42px;
    width: 100%;
}

.rating-bar-label-mini {
    font-size: 12px;
    color: gray;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.rating-bar-wrapper-mini {
    position: relative;
    height: 14px;
    min-width: 0;
}

.rating-bar-background-mini {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill-mini {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px 0 0 3px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    background-size: 200% 100% !important;
    background-position: right !important;
    z-index: 2;
    width: var(--user-score-width, 0%);
    background: var(--user-score-gradient, linear-gradient(90deg, #8b0000 0%, #a52a2a 40%, #8b0000 70%, #a52a2a 100%));
}

.rating-bar-fill-mini.bar-color-genre {
    width: var(--genre-score-width, 0%);
    background: var(--genre-score-gradient, linear-gradient(90deg, #8b0000 0%, #a52a2a 40%, #8b0000 70%, #a52a2a 100%));
}

.rating-bar-fill-mini.bar-color-editors {
    width: var(--editor-score-width, 0%);
    background: var(--editor-score-gradient, linear-gradient(90deg, #8b0000 0%, #a52a2a 40%, #8b0000 70%, #a52a2a 100%));
}

.rating-bar-gradient-continuation {
    position: absolute;
    top: 0;
    left: var(--user-score-width, 0%);
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.3!important;
    background-size: 200% 100%;
    background-position: right;
    transition: opacity 0.3s ease;
    background: var(--user-score-gradient, linear-gradient(90deg, #8b0000 0%, #a52a2a 40%, #8b0000 70%, #a52a2a 100%));
}

.rating-bar-gradient-continuation.visible {
    opacity: 0.15!important;
}

.rating-bar-text-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: #000;
    text-shadow: 1px 0 2px rgba(255, 255, 255, 0.3);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.final-score-container-compact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .final-score-container-compact {
        margin-left: 0;
        order: -1;
    }
}

.metacritic-score {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-weight: bold;
    font-size: 30px;
    color: #000 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.metacritic-score:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.scale-label {
    display: none !important;
}

.stats-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    justify-items: stretch;
    align-items: stretch;
}

.stat-item {
    min-width: 140px;
    min-height: 115px;
    padding: 10px;
    background: rgb(25 25 25 / 65%);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 100%;
    border: 1px solid #141414;
}

.stat-item:hover {
    background: rgba(15, 15, 15, 0.9);
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 20px;
    color: var(--stat-icon-color, #8a8ac4);
    opacity: 0.9;
    transition: transform 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 30px;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
    flex: 1;
    min-height: 40px;
}

.stat-item.genre-stat-item .stat-value {
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 10px;
    color: darkgray;
    text-align: center;
    opacity: 0.8;
    line-height: 1.3;
    width: 100%;
    padding: 0 5px;
}

.stat-item.bookmark-popular {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.stat-item.bookmark-popular::after {
    content: '★';
    position: absolute;
    top: -6px;
    right: -6px;
    color: gold;
    font-size: 12px;
    background: #151515;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

@media (max-width: 768px) {
    .stats-line {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .stat-item {
        min-width: 130px;
        min-height: 100px;
        padding: 12px 10px;
    }
    
    .stat-icon {
        font-size: 20px;
        height: 28px;
        margin-bottom: 6px;
    }
    
    .stat-value {
        font-size: 15px;
        min-height: 36px;
    }
    
    .stat-item.genre-stat-item .stat-value {
        font-size: 13px;
        min-height: 42px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stats-line {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .stat-item {
        min-width: auto;
        min-height: 95px;
        padding: 10px 8px;
    }
    
    .stat-icon {
        font-size: 18px;
        height: 26px;
        margin-bottom: 4px;
    }
    
    .stat-value {
        font-size: 14px;
        min-height: 32px;
    }
    
    .stat-item.genre-stat-item .stat-value {
        font-size: 12px;
        min-height: 36px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .rating-bar-label-mini {
        font-size: 10px;
    }
    .rating-bar-mini {gap:25px;}
    
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: fadeInUp 0.3s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
    opacity: 0;
}

.voting-prompt-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.voting-prompt-title {
    font-size: 14px;
    font-weight: 600;
    color: #6a5af9;
    line-height: 1.2;
}

.voting-prompt-subtitle {
    font-size: 12px;
    color: #8a8ac4;
    line-height: 1.2;
}

.voting-prompt-btn {
    min-width: 70px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    order: 3;
    margin-left: auto !important;
}

.voting-prompt {
    animation: pulse-border 2s infinite;
    cursor: pointer;
    height: 54px;
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .voting-prompt {
        padding: 8px 10px;
        height: auto;
        min-height: 54px;
    }
    
    .voting-prompt-content {
        min-width: 0;
    }
    
    .voting-prompt-title {
        font-size: 13px;
    }
    
    .voting-prompt-subtitle {
        font-size: 11px;
    }
    
    .voting-prompt-btn {
        min-width: 60px;
        padding: 5px 10px;
        font-size: 12px;
        margin-left: 8px !important;
    }
}

.voting-smart {
    background: rgb(10 10 10 / 80%);
    border-radius: 12px;
    padding: 10px 20px 24px;
    margin: 24px 0;
    border: 1px solid #1f1c24;
    backdrop-filter: blur(10px);
}

.voting-title-container {
    text-align: center;
}

.voting-title-smart {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom:10px 0;
}

.mode-selector-smart {
    display: flex;
    background: #151515;
    border-radius: 10px;
    width: fit-content;
    border: 1px solid #1f1c24;
    margin: 15px auto 0;
}

.mode-tab-smart {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: none;
    color: #8a8ac4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mode-tab-smart.active {
    background: rgb(72 61 139 / 30%);
    color: #ffffff;
    border: 1px solid rgba(106, 90, 249, 0.3);
}

@media (max-width: 768px) {
    .mode-selector-smart {
        width: 100%;
        justify-content: center;
    }
    
    .mode-tab-smart {
        flex: 1;
        padding: 10px;
    }
}

.quick-vote-smart {
    display: none;
    text-align: center;
}

.quick-vote-smart.active {
    display: block;
    animation: fadeIn 0.3s;
}

.quick-vote-content {
    max-width: 560px;
    margin: 10px auto;
    padding: 0;
}

.quick-rating-top {
    text-align: center;
}

.quick-score-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-score-value.terrible { color: brown; }
.quick-score-value.bad { color: brown; }
.quick-score-value.weak { color: gold; }
.quick-score-value.average { color: gold; }
.quick-score-value.good { color: greenyellow; }
.quick-score-value.excellent { color: greenyellow; }
.quick-score-value.great { color: springgreen; }
.quick-score-value.outstanding { color: springgreen; }
.quick-score-value.masterpiece { color: springgreen; }

.quick-slider-section {
    margin: 25px 0;
}

.slider-wrapper {
    position: relative;
    height: 15px;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #1f1c24;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.slider-fill {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.1s, background-color 0.2s;
    z-index: 2;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    left: 0;
    width: var(--slider-position, 50%);
    background-color: var(--slider-color, brown);
}

.slider-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #6a5af9;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 10;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    left: var(--slider-position, 50%);
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    left: 0;
    top: 0;
}

.slider-thumb:hover {
    transform: translateY(-50%) translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 5px rgba(106, 90, 249, 0.3);
}

.quick-rating-bottom {
    text-align: center;
}

.emoji-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.emoji-large {
    font-size: 60px;
    display: block;
}

.rating-description {
    font-size: 18px;
    color: #e0e0e0;
    font-weight: 600;
    text-align: center;
}

.detailed-vote-smart {
    display: none;
    padding: 24px;
    border-radius: 12px;
}

.detailed-vote-smart.active {
    display: block;
    animation: fadeIn 0.3s;
}

.aspect-voting-smart {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 0 0 0 10px;
    border-radius: 10px;
    border: 1px solid #1f1c24;
    transition: all 0.2s;
    box-sizing: border-box;
}

.aspect-voting-smart:hover {
    background: #202020;
    border-color: #2a2a2a;
}

.aspect-voting-smart.inactive {
    opacity: 0.5;
}

.aspect-voting-smart.inactive .slider-input {
    pointer-events: none;
}

.aspect-voting-smart.inactive .slider-fill {
    background: dimgray !important;
}

.toggle-cross {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 6px;
    background: #252525;
    border: 1px solid #1f1c24;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.toggle-cross svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s;
    fill: darkolivegreen;
    transform: rotate(45deg);
}

.toggle-cross.active svg {
    fill: #ff6b6b;
    transform: rotate(0deg);
}

.toggle-cross:hover svg {
    fill: #ff6b6b;
}

.aspect-name-smart {
    flex: 1;
    font-size: 15px;
    color: #a0a0e0;
    min-width: 100px;
    font-weight: 500;
    text-align: unset;
}

.slider-smart-container {
    flex: 2;
    position: relative;
    height: 15px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.dynamic-score-smart {
    font-size: 20px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    transition: all 0.2s;
    padding: 6px 12px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #1f1c24;
    color: var(--aspect-color, dimgray);
}

.detailed-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: #151515;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #1f1c24;
    transition: transform 0.2s, border-color 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: #2a2a2a;
}

.result-card-title {
    font-size: 14px;
    color: #8a8ac4;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.8;
}

.result-score-large {
    font-size: 56px;
    font-weight: 800;
    margin-bottom:0;
    line-height: 1;
}

.result-text {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
}

.grid-submit-btn, .quick-submit-btn {
    width: auto !important;
    max-width: 300px;
    margin: 0 auto 0 auto !important;
    padding: 12px;
    background: linear-gradient(135deg, #6a5af9, #8a7dff);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(106, 90, 249, 0.3);
    border: 1px solid rgba(106, 90, 249, 0.3);
}

.grid-submit-btn:hover:not(:disabled), .quick-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(106, 90, 249, 0.4);
}

.grid-submit-btn:disabled, .quick-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grid-submit-btn {
    grid-column: 1 / -1;
    margin-top: 30px;
    justify-self: center;
}

.vote-success {
    background: #151515;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #1f1c24;
    text-align: center;
    animation: fadeIn 0.5s;
    display: none;
    backdrop-filter: blur(10px);
}

.success-title {
    font-size: 20px;
    font-weight: 700;
    color: #20c997;
    margin-bottom: 16px;
}

.success-text {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-smart {
    animation: pulse 0.3s ease-in-out;
}

.stats-line-wrapper {
    display: flex;
    gap: 12px;
}

@media (max-width: 1024px) {
    .stats-line-wrapper {
        flex-direction: column-reverse;
    }
}

.user-ratings-side {
    flex: 0.6;
    min-width: 0;
    border-radius: 6px;
    max-height: 325px;
    overflow-y: scroll;
    scrollbar-width: none;
    text-align: initial;
}

.user-ratings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-rating-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgb(25 25 25 / 65%);
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    height: 55px;
    border: 1px solid #141414;
}

.user-rating-item:hover {
    transform: translateY(-1px);
}

.user-rating-info {
    flex: 1;
    min-width: 0;
    display: block;
    flex-direction: column;
    gap: 0px;
}
.user-rating-info a, .user-rating-name {text-decoration:none!important;display:contents;}

.user-rating-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.user-rating-name:hover {
    color: #6a5af9;
    text-decoration: underline;
}

.user-rating-time {
    font-size: 11px;
    color: darkgray;
}

.user-rating-score {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    min-width: 52px;
    height: 26px;
    line-height: 26px;
    padding: 0 5px;
    background: var(--score-color, rgba(0, 0, 0, 0.3));
    border-radius: 6px;
    color: black;
    margin-left: auto;
    order: 2;
    box-sizing: border-box;
}

.user-rating-change-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: rgba(106, 90, 249, 0.2);
    border: 1px solid rgba(106, 90, 249, 0.4);
    color: #6a5af9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    order: 3;
}

.user-rating-change-btn:hover {
    background: rgba(106, 90, 249, 0.3);
    transform: translateY(-1px);
}

.compact-stats-side {
    flex: 1;
    min-width: 0;
}

.user-rating-item.current-user-rating {
    background: rgba(106, 90, 249, 0.1);
}

.user-rating-item.current-user-rating .user-rating-name {
    color: #6a5af9 !important;
    font-weight: 700;
}

.rating-type-icon {
    width: 24px;
    height: 26px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
    order: 0;
    align-self: center;
}

.detailed-icon {
    background: #464646;
    border-radius: 6px;
    color: #8a8ac4;
    padding: 0 8px;
    filter: hue-rotate(45deg);
    box-sizing: border-box;
    line-height: 26px;
    height: 26px;
}

.vote-notification {
    background: rgb(72 61 139 / 30%);
    border: 1px solid rgba(106, 90, 249, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vote-notification-text {
    color: #6a5af9;
    font-size: 14px;
    font-weight: 600;
}

@keyframes pulse-border {
    0% { border-color: rgba(106, 90, 249, 0.3); }
    50% { border-color: rgba(106, 90, 249, 0.7); }
    100% { border-color: rgba(106, 90, 249, 0.3); }
}

.voting-prompt:hover {
    background: rgba(106, 90, 249, 0.2) !important;
    transform: translateY(-2px);
}

.gear-btn {
    border: none;
    background: transparent;
    color: slateblue;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    order: 3;
    margin-left: 2px;
    display: inline;
}

.gear-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    vertical-align: middle;
}

.motivation-message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.motivation-text {
    color: #ffc107;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.no-ratings-message {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.no-ratings-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: dimgray;
}

.no-ratings-title {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.no-ratings-text {
    font-size: 13px;
    color: #8a8ac4;
    line-height: 1.4;
}

#pro-rating-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    font-size: 18px;
    flex-direction: column;
}

#pro-rating-loading div {
    margin-bottom: 20px;
}

#pro-rating-loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6a5af9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rating-bar-fill-mini.animated {
    animation: none !important;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.community-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.compact-stats-side .stats-line {
    margin: 0;
}

.vote-notification {
    animation: slideIn 0.3s ease-out;
}

.detailed-rating-badge {
    background: rgba(138, 138, 196, 0.2);
    color: #8a8ac4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 5px;
}

@media (max-width: 480px) {
    .results-compact {
        padding: 16px;
    }
    
    .voting-smart {
        padding: 10px;
    }
    
    .aspect-voting-smart {
        flex-wrap: wrap;
    }
    
    .aspect-name-smart {
        min-width: 80px;
        font-size: 14px;
    }
    
    .dynamic-score-smart {
        font-size: 18px;
        min-width: 50px;
    }
}

.voting-smart, .vote-success {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.voting-smart.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    display: none !important;
}

.vote-success.visible {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

.user-authority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    order: 1;
    text-transform: uppercase;
    vertical-align: middle;
    cursor: pointer;
}

.user-authority-badge.level-0 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.level-1 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.level-2 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.level-3 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.level-4 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.level-5 {
    color: dimgray;
    border-color: dimgray;
    opacity: 0.5;
}

.user-authority-badge.controversial {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.3);
    background: rgba(255, 69, 0, 0.1);
}

.user-authority-badge.guest {
    color: #808080;
    border-color: rgba(128, 128, 128, 0.3);
    background: rgba(128, 128, 128, 0.1);
}

.authority-icon {
    font-size: 10px;
    line-height: 1;
}

.authority-title {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .user-authority-badge {
        padding: 1px 6px;
        font-size: 9px;
        margin-left: 4px;
    }
    
    .authority-title {
        font-size: 9px;
    }
    
    .authority-icon {
        font-size: 9px;
    }
}

.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.rating-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: rgb(10 10 10 / 95%);
    border-radius: 6px;
    border: 1px solid #1f1c24;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #1f1c24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(21, 21, 21, 0.8);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
}
h2.modal-title  {margin: 0;}

.modal-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.modal-close svg {
    fill: currentColor;
    width: 30px;
    height: 30px;
}

.modal-body {
    padding: 30px;
}

.modal-body .voting-smart {
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
}

.modal-body .voting-header-smart {
    margin-bottom: 15px;
}

.modal-body .voting-title-container {
    text-align: center;
}

.modal-body .voting-title-smart {
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-body .mode-selector-smart {
    margin: 0 auto;
}

.modal-body .detailed-vote-smart {
    padding: 0;
}

.modal-body .aspects-voting-smart::-webkit-scrollbar {
    width: 6px;
}

.modal-body .aspects-voting-smart::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.modal-body .aspects-voting-smart::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 249, 0.5);
    border-radius: 3px;
}

.modal-body .aspects-voting-smart::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 90, 249, 0.7);
}

.modal-body .detailed-results-grid {
    margin-top: 15px;
}

.modal-quick-submit-btn, .modal-grid-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6a5af9, #8a7dff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(106, 90, 249, 0.3);
    border: 1px solid rgba(106, 90, 249, 0.3);
}

.modal-quick-submit-btn:hover:not(:disabled), .modal-grid-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(106, 90, 249, 0.4);
}

.modal-quick-submit-btn:disabled, .modal-grid-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 5px 10px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 15px 5px;
    }
    
    .modal-body .aspect-voting-smart {
        flex-wrap: wrap;
    }
    
    .modal-body .aspect-name-smart {
        min-width: 96px;
    }
    
    .modal-body .dynamic-score-smart {
        font-size: 16px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .result-text {font-size:14px;}
    .result-score-large {font-size:22px;}
    .detailed-results-grid {font-size: 9px;gap:15px;}
    .modal-body .mode-selector-smart {
        width: 100%;
    }
    
    .modal-body .mode-tab-smart {
        font-size: 12px;
        padding: 8px;
    }
    
    .modal-body .aspect-voting-smart {
        padding: 10px;
    }
    
    .modal-body .slider-smart-container {
        min-width: 100px;
    }
}
@media (max-width: 768px) {
    .result-card {padding:10px;}
    .result-score-large {font-size:30px;}
    .result-card-title {font-size:9px;margin-bottom: 10px;}
    .aspect-name-smart {font-size:12px;text-align: center;}
    .aspect-voting-smart {gap:8px;}
}

/* МИНИМАЛИСТИЧНЫЙ POPUP ДЛЯ ОБЗОРОВ */
.reviews-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: rgb(15 15 15 / 98%);
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    overflow: hidden;
}

.reviews-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    display: block;
}

.reviews-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    background: rgba(21, 21, 21, 0.9);
    flex-shrink: 0;
    position: relative;
}

.popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0;
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    z-index: 100;
}

.popup-close-btn svg {
    fill: currentColor;
    width: 30px;
    height: 30px;
}

.reviews-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 200px;
    max-height: calc(80vh - 80px);
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: rgba(106, 90, 249, 0.5);
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 90, 249, 0.7);
}

.review-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: all 0.2s ease;
    animation: reviewItemFadeIn 0.4s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    opacity: 0;
    transform: translateY(10px);
}

.review-item:hover {
    background: rgba(40, 40, 40, 0.8);
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.review-author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 15px;
}

.review-author-link:hover {
    color: #6a5af9;
}

.review-date {
    font-size: 12px;
    color: #8a8ac4;
}

.review-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-read-link {
    display: inline-block;
    font-size: 13px;
    color: #6a5af9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    padding: 4px 0;
}

.review-read-link:hover {
    color: #8a7dff;
    text-decoration: underline;
}

.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
    color: #8a8ac4;
    font-size: 15px;
}

@keyframes reviewItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность popup */
@media (max-width: 768px) {
    .reviews-popup {
        width: 95%;
        max-width: none;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-title {
        font-size: 18px;
    }
    
    .popup-close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .popup-close-btn svg {
        width: 25px;
        height: 25px;
    }
    
    .reviews-list {
        padding: 15px;
        max-height: calc(85vh - 70px);
    }
    
    .review-item {
        padding: 12px;
    }
    
    .review-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-date {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .reviews-popup {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .reviews-popup-content {
        height: 100%;
        max-height: 100vh;
    }
    
    .reviews-list {
        max-height: calc(100vh - 80px);
    }
}

/* Overlay для popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}