body {
    background-image: url('/files/images/etkinlik-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

body::before {
    /* Arka plan karartmasını kaldırmak için devre dışı bırakıldı */
    content: none;
}

.modern-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.match-card {
    background: rgba(135, 206, 250, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(173, 216, 230, 0.3);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(135, 206, 250, 0.1),
        0 4px 16px rgba(173, 216, 230, 0.1);
    overflow: visible;
}

.match-header {
    background-color: transparent !important;
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

.match-header img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.match-card table,
.match-card table th,
.match-card table td,
.match-card input,
.match-card select,
.match-card div:not(.match-header) {
    border-radius: 0 !important;
}

.match-card button:not(.character-select-btn) {
    border-radius: 16px !important;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 40px rgba(135, 206, 250, 0.2),
        0 6px 20px rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.5);
    background: rgba(135, 206, 250, 0.2);
}

.match-card.expanded {
    background: rgba(135, 206, 250, 0.25);
    backdrop-filter: blur(25px);
}

.match-card.expanded:hover {
    transform: none;
    box-shadow:
        0 8px 32px rgba(135, 206, 250, 0.1),
        0 4px 16px rgba(173, 216, 230, 0.1);
    border-color: rgba(173, 216, 230, 0.3);
    background: rgba(135, 206, 250, 0.25);
}

.match-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0;
    border-radius: 0 0 30px 30px;
    margin-top: 0 !important;
}

.match-details.expanded {
    max-height: 10000px;
    padding: 20px 0;
    margin-top: 0 !important;
}

.detail-row {
    display: none !important;
}

.detail-row.show {
    display: table-row !important;
}

.match-details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.match-details-content.expanded {
    max-height: 10000px !important;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(107, 114, 128, 0.5);
    transform: scale(1.05);
}

.share-btn i {
    font-size: 14px;
}

.map-selector-dropdown {
    position: fixed;
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 50%),
        linear-gradient(145deg, rgba(8, 8, 14, 0.98), rgba(2, 2, 4, 0.99));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 999999;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 300px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    margin: 0;
    padding: 10px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.map-selector-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.map-option {
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.9);
}

.map-option:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(4px);
}

.map-option img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 5px !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.player-row {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    vertical-align: middle !important;
    border: none;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.player-row td:first-child {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    padding-left: 15px;
}

.player-row td:last-child {
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    padding-right: 15px;
}

.player-row td,
.player-row th {
    padding: 15px;
    border-radius: 0 !important;
}

.player-row input,
.player-row select,
.player-row div {
    border-radius: 0 !important;
}

.player-row button:not(.character-select-btn) {
    border-radius: 16px !important;
}

table td {
    vertical-align: middle !important;
    text-align: center !important;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    background: transparent !important;
}

table th {
    vertical-align: middle !important;
    text-align: center !important;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    background: transparent !important;
}

table thead th {
    vertical-align: middle !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

table tbody td {
    vertical-align: middle !important;
    text-align: center !important;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    background: transparent !important;
}

/* Discord Kullanıcı kolonu için özel stil - sola hizalı */
table thead th:first-child,
table tbody td:first-child {
    text-align: left !important;
}

.player-row.won {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
}

.player-row.won td:first-child {
    border-left: 4px solid #10b981;
}

.player-row.lost {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
}

.player-row.lost td:first-child {
    border-left: 4px solid #ef4444;
}

.player-row.team1 {
    background: rgba(250, 204, 21, 0.18);
    border-left: 4px solid rgba(250, 204, 21, 0.9);
}

.player-row.team1 td:first-child {
    border-left: 4px solid rgba(250, 204, 21, 0.9);
}

.player-row.team2 {
    background: rgba(251, 146, 60, 0.18);
    border-left: 4px solid rgba(251, 146, 60, 0.9);
}

.player-row.team2 td:first-child {
    border-left: 4px solid rgba(251, 146, 60, 0.9);
}

.character-select {
    position: relative;
    z-index: 100000;
}

.player-row td {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.character-select-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    padding: 5px !important;
    position: relative !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
}

.character-select-btn:hover {
    background: transparent !important;
}

.character-select-btn::before,
.character-select-btn::after {
    display: none !important;
}

.selected-character-img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 5px !important;
    object-fit: contain !important;
    object-position: center center !important;
    position: relative !important;
    z-index: 10 !important;
    background: transparent !important;
}

.selected-character-img.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.character-select-btn .selected-character-img.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.character-select-btn .selected-character.hide {
    display: none !important;
    visibility: hidden !important;
}

/* Inline style'daki display: none'ı override et - en yüksek öncelik */
.character-select-btn .selected-character-img.show,
.character-select-btn .selected-character-img.show[style*="display"],
.character-select-btn .selected-character-img[style*="display: none"].show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.character-dropdown {
    position: fixed !important;
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 50%),
        linear-gradient(145deg, rgba(8, 8, 14, 0.98), rgba(2, 2, 4, 0.99)) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 12px !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 999999 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 320px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    padding: 8px !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.character-dropdown.show {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.character-option {
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.character-option:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.05);
}

.character-option img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.character-option span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.member-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-search input[readonly] {
    flex: 1;
}

.member-search .remove-spectator-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.member-dropdown {
    position: fixed !important;
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 50%),
        linear-gradient(145deg, rgba(8, 8, 14, 0.98), rgba(2, 2, 4, 0.99)) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 12px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 999999 !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 300px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.member-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.member-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 4px;
    color: rgba(255, 255, 255, 0.9);
}

.member-option:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(4px);
}

.member-option img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.result-select {
    width: 130px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.1), transparent 60%),
        rgba(12, 12, 20, 0.92);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    cursor: pointer;
}

.result-select:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.result-select option {
    background: #0d0d13;
    color: #ffffff;
}

.draw-badge {
    color: #fb923c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    margin-top: 8px;
    text-shadow: 0 0 12px rgba(251, 146, 60, 0.4);
}

input[type="number"],
input[type="text"],
select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 12px 15px;
    color: #ffffff;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.modern-container button {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 12px 24px !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: 'Poppins', sans-serif !important;
    width: auto !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.modern-container button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 0 !important;
}

.modern-container button:hover::before {
    left: 100% !important;
}

.modern-container button:hover {
    transform: translateY(-4px) !important;
    box-shadow: none !important;
    color: white !important;
}

.modern-container button span {
    position: relative !important;
    z-index: 1 !important;
    font-size: 1rem !important;
}

.modern-container button i {
    position: relative !important;
    z-index: 1 !important;
    font-size: 1.1rem !important;
}

.modern-container button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.modern-container button:disabled::before {
    display: none !important;
}

.modern-container button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Ödüllendir butonu için özel stil */
.modern-container button.reward-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: none !important;
}

.modern-container button.reward-btn:hover {
    box-shadow: none !important;
}

.modern-container button.reward-btn:disabled:hover {
    box-shadow: none !important;
}

/* Kaldır butonu için özel stil */
.modern-container button.remove-spectator-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    width: auto !important;
    padding: 10px 20px !important;
    box-shadow: none !important;
}

.modern-container button.remove-spectator-btn:hover {
    box-shadow: none !important;
}

.modern-container button.remove-spectator-btn span {
    font-size: 0.9rem !important;
}

.modern-container button.remove-spectator-btn i {
    font-size: 1rem !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    backdrop-filter: blur(10px) !important;
}

.modal-content {
    background: #1e1e1e !important;
    border-radius: 20px !important;
    max-width: 800px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(173, 216, 230, 0.3) !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0 !important;
        transform: translateY(-50px) scale(0.9) !important;
    }

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

.modal-header {
    padding: 30px !important;
    border-bottom: 1px solid rgba(173, 216, 230, 0.2) !important;
    position: relative !important;
}

.modal-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

.modal-body {
    padding: 20px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

.character-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 15px !important;
}

.character-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(173, 216, 230, 0.2) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
}

.character-item:hover {
    background: rgba(173, 216, 230, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(173, 216, 230, 0.2) !important;
}

.character-item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
}

.character-item span {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.user-search-input {
    width: 100% !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(173, 216, 230, 0.3) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    transition: all 0.2s ease !important;
}

.user-search-input:focus {
    outline: none !important;
    border-color: rgba(173, 216, 230, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(173, 216, 230, 0.1) !important;
}

.user-list {
    max-height: 50vh !important;
    overflow-y: auto !important;
}

.user-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(173, 216, 230, 0.2) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.user-item:hover {
    background: rgba(173, 216, 230, 0.1) !important;
    transform: translateX(5px) !important;
}

.user-item img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    object-fit: cover !important;
}

.user-info {
    flex: 1 !important;
}

.user-name {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
}

.user-discord {
    color: #a3a3a3 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
}

.modal-btn {
    background: rgba(173, 216, 230, 0.1) !important;
    border: 1px solid rgba(173, 216, 230, 0.3) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 60px !important;
    min-height: 60px !important;
    position: relative !important;
}

.modal-btn:hover {
    background: rgba(173, 216, 230, 0.2) !important;
    transform: translateY(-1px) !important;
}

.modal-btn img {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
    border-radius: 5px !important;
}

.modal-btn span {
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* ==================== MODERN RATING SYSTEM ==================== */

/* Rating Trigger Button */
.rating-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    margin: 16px 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.rating-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.rating-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.rating-trigger-btn:hover::before {
    left: 100%;
}

.rating-trigger-btn:active {
    transform: translateY(-1px);
}

.rating-trigger-btn i {
    font-size: 1.1rem;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Rating Modal Container */
.rating-modal-container {
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.98) 0%, rgba(20, 20, 25, 0.99) 100%);
}

.rating-modal-container::-webkit-scrollbar {
    width: 8px;
}

.rating-modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.rating-modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

/* Rating Modal Header */
.rating-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.rating-modal-title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-modal-title i {
    color: #fbbf24;
    font-size: 1.5rem;
}

.rating-modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Rating Participant Card */
.rating-participant-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rating-participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rating-participant-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.rating-participant-card:hover::before {
    opacity: 1;
}

.rating-participant-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.rating-participant-card.rated {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.rating-participant-card.self {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Participant Avatar */
.rating-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.rating-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.rating-participant-card:hover .rating-avatar {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.rating-type-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #1e1e1e;
}

.rating-type-badge.admin {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.rating-type-badge.player {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

/* Participant Info */
.rating-info {
    flex: 1;
    min-width: 0;
}

.rating-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.rating-name {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.rating-self-badge {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-game-nick {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
}

.rating-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-character-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.rating-current-score {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.rating-current-score i {
    font-size: 0.8rem;
}

/* Modern Star Rating */
.rating-stars-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    direction: rtl;
}

.rating-star {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.15);
    filter: grayscale(1);
    transform-origin: center;
}

.rating-star:hover,
.rating-star:hover ~ .rating-star,
.rating-star.active,
.rating-star.active ~ .rating-star {
    color: #fbbf24;
    filter: grayscale(0);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.rating-star:hover {
    transform: scale(1.3);
}

.rating-star.locked {
    cursor: not-allowed;
    opacity: 0.4;
}

.rating-star.locked:hover {
    transform: none;
}

/* Score Preview Tooltip */
.rating-score-preview {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s ease;
}

.rating-score-preview.selecting {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
    transform: scale(1.05);
}

.rating-score-preview.locked {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.rating-score-preview.rated {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Rating Action Buttons */
.rating-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.rating-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.rating-btn-save:active {
    transform: translateY(0);
}

.rating-btn-cancel {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rating-btn-cancel:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.rating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Empty State */
.rating-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.rating-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.rating-empty-state p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* All Rated Message */
.rating-all-rated {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    color: #10b981;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-all-rated i {
    font-size: 1.2rem;
}

.rating-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    backdrop-filter: blur(6px);
}

.rating-loading-box {
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.rating-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(251, 191, 36, 0.25);
    border-top-color: #fbbf24;
    border-radius: 50%;
    animation: ratingSpin 0.9s linear infinite;
}

@keyframes ratingSpin {
    to { transform: rotate(360deg); }
}

.rating-loading-text {
    color: #fbbf24;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.rating-status {
    margin-top: 6px;
    margin-bottom: -6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.rating-status[data-status="success"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.06));
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.rating-status[data-status="error"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.06));
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.rating-status[data-status="warn"] {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.06));
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

.rating-status[data-status="info"] {
    background: rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    .rating-participant-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .rating-info {
        width: 100%;
    }

    .rating-name-row,
    .rating-meta-row {
        justify-content: center;
    }

    .rating-stars-container {
        align-items: center;
        width: 100%;
    }

    .rating-stars {
        justify-content: center;
    }

    .rating-actions {
        flex-direction: column;
    }

    .rating-btn {
        width: 100%;
    }
}