/* ===================================================
   GIẢI ĐẤU VÒNG TRÒN - Styles
   =================================================== */

/* Override body cho trang vòng tròn */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Container */
.container {
    color: #ffffff;
}

/* Header */
.header {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.header h1 {
    color: #fbbf24;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Card styling */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: #fbbf24;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.3);
}

.card h2 i {
    margin-right: 10px;
}

/* Player group */
.player-group {
    margin-bottom: 25px;
}

.player-group h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.player-group h3 i {
    color: #667eea;
    margin-right: 8px;
}

/* Input số đội */
.so-doi-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.so-doi-input {
    width: 100px;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.so-doi-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.so-doi-input::-webkit-inner-spin-button,
.so-doi-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.so-doi-label {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
}

.so-doi-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.so-doi-note i {
    margin-right: 5px;
    color: #667eea;
}

/* Chế độ nhập */
.che-do-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

.radio-label:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.radio-label input[type="radio"] {
    accent-color: #667eea;
    width: 18px;
    height: 18px;
}

.radio-label input[type="radio"]:checked + span {
    color: #fbbf24;
    font-weight: 600;
}

/* Ghép cặp options */
.ghep-cap-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.2);
    min-width: 200px;
    color: #ffffff;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text strong {
    color: #fbbf24;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-text strong {
    font-size: 0.95rem;
    transition: color 0.3s ease;
    color: #ffffff;
}

.checkbox-text small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Thông báo dữ liệu cũ */
.thong-bao-du-lieu {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.du-lieu-cu-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.du-lieu-cu-content i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.du-lieu-cu-content span {
    font-weight: 500;
    flex: 1;
    min-width: 150px;
    color: #ffffff;
}

.nut-accent {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nut-accent:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.nut-secondary {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nut-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Button group */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Override input styles cho nền tối */
.player-input {
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.player-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.player-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Input grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Nút bắt đầu giải đấu */
.btn-primary {
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    padding: 12px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-danger {
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Bảng xếp hạng */
.bang-xep-hang-container {
    overflow-x: auto;
    margin-top: 15px;
}

.bang-xep-hang-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #ffffff;
}

.bang-xep-hang-table th,
.bang-xep-hang-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bang-xep-hang-table th {
    background: rgba(102, 126, 234, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #fbbf24;
}

.bang-xep-hang-table .th-doi {
    text-align: left;
    min-width: 150px;
}

.bang-xep-hang-table .td-doi {
    text-align: left;
}

.bang-xep-hang-table .td-hang {
    font-weight: bold;
    font-size: 1.1rem;
}

.bang-xep-hang-table .td-diem {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fbbf24;
}

.bang-xep-hang-table .td-thang {
    color: #10b981;
}

.bang-xep-hang-table .td-thua {
    color: #ef4444;
}

.bang-xep-hang-table .td-hs {
    font-weight: 500;
}

.bang-xep-hang-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hạng 1, 2, 3 */
.bang-xep-hang-table tr.hang-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
}

.bang-xep-hang-table tr.hang-1 .td-hang {
    color: #ffd700;
}

.bang-xep-hang-table tr.hang-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
}

.bang-xep-hang-table tr.hang-2 .td-hang {
    color: #c0c0c0;
}

.bang-xep-hang-table tr.hang-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
}

.bang-xep-hang-table tr.hang-3 .td-hang {
    color: #cd7f32;
}

.ten-doi-xh {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.ghi-chu-bang {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.ghi-chu-rank {
    width: 100%;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    font-size: 0.8rem;
}

.ghi-chu-rank i {
    margin-right: 5px;
}

/* Bộ lọc trận đấu */
.bo-loc-tran {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.loc-btn {
    padding: 8px 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.loc-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.loc-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #ffffff;
}

/* Danh sách trận đấu */
.danh-sach-tran-dau {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.tran-dau-item {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

.tran-dau-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
}

.tran-dau-item.da-ket-thuc {
    border-left: 4px solid #10b981;
}

.tran-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tran-stt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.badge-da-dau {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
}

.tran-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.doi-tran {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.doi-tran.doi-thang {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.doi-tran.doi-thua {
    background: rgba(239, 68, 68, 0.2);
    opacity: 0.8;
}

.doi-tran.doi-hoa {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.ten-doi {
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
    color: #ffffff;
}

.ket-qua-tran {
    text-align: center;
    min-width: 60px;
}

.ty-so {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fbbf24;
}

.chua-dau {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.btn-cap-nhat {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-cap-nhat:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.khong-co-tran {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-style: italic;
}

/* Thống kê */
.thong-ke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.thong-ke-item {
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

.thong-ke-item:hover {
    transform: translateY(-3px);
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.thong-ke-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #667eea;
}

.thong-ke-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
    line-height: 1;
}

.thong-ke-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* Tiến trình */
.tien-trinh-container h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f43f5e);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    border-radius: 10px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.progress-text {
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modal overrides cho nền tối */
.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.modal-body {
    padding: 25px;
    color: #ffffff;
}

.modal-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal nhập tỷ số */
.thong-tin-tran-modal {
    text-align: center;
    margin-bottom: 15px;
}

.tran-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
}

.nhap-ty-so {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 10px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.doi-ty-so {
    text-align: center;
    flex: 1;
    max-width: 140px;
}

.ten-doi-modal {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.85rem;
    word-break: break-word;
    color: #ffffff;
    line-height: 1.3;
    min-height: 2.6em;
}

.input-ty-so {
    width: 70px;
    height: 70px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fbbf24;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-ty-so::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
}

.input-ty-so:focus {
    border-color: #fbbf24;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* Hide number input spinners on mobile */
.input-ty-so::-webkit-inner-spin-button,
.input-ty-so::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vs-modal {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    padding: 0 5px;
}

.luu-y-diem {
    margin-top: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.luu-y-diem i {
    color: #fbbf24;
    margin-right: 5px;
}

/* Modal footer buttons */
.modal-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nut-chinh {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.nut-chinh:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.nut-phu {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nut-phu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Nút cảnh báo */
.nut-canh-bao {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nut-canh-bao:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Chúc mừng vô địch */
.chuc-mung-content {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.chuc-mung-content #phao-hoa-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trophy-icon {
    font-size: 5rem;
    margin: 20px 0;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ten-vo-dich {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.thong-tin-vo-dich {
    opacity: 0.9;
}

.stat-vo-dich {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .so-doi-input-wrapper {
        flex-wrap: wrap;
    }
    
    .so-doi-input {
        width: 90px;
        padding: 10px 12px;
        font-size: 1.1rem;
    }
    
    .danh-sach-tran-dau {
        grid-template-columns: 1fr;
    }
    
    .tran-content {
        flex-direction: column;
    }
    
    .doi-tran {
        width: 100%;
    }
    
    /* Modal mobile - giữ layout ngang cho tiện nhập */
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .nhap-ty-so {
        flex-direction: row;
        gap: 8px;
        padding: 15px 10px;
    }
    
    .doi-ty-so {
        max-width: 120px;
    }
    
    .ten-doi-modal {
        font-size: 0.75rem;
        margin-bottom: 8px;
        min-height: auto;
    }
    
    .input-ty-so {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }
    
    .vs-modal {
        font-size: 1.2rem;
        padding: 0;
    }
    
    .luu-y-diem {
        font-size: 0.7rem;
        margin-top: 10px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
    
    .nut-chinh, .nut-canh-bao, .nut-phu {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .thong-ke-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bang-xep-hang-table {
        font-size: 0.85rem;
    }
    
    .bang-xep-hang-table th,
    .bang-xep-hang-table td {
        padding: 8px 4px;
    }
    
    .ten-doi-xh {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .che-do-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .radio-label {
        justify-content: center;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .tuy-chon-ghep-cap {
        padding: 12px 15px;
    }
    
    .thong-bao-du-lieu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .thong-bao-du-lieu .cac-nut {
        flex-direction: column;
        width: 100%;
    }
    
    .thong-bao-du-lieu .nut-accent,
    .thong-bao-du-lieu .nut-secondary {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .ghi-chu-bang {
        font-size: 0.75rem;
        gap: 5px 10px;
    }
    
    .trophy-icon {
        font-size: 3.5rem;
    }
    
    .ten-vo-dich {
        font-size: 1.4rem;
    }
}
