/* Trang kết quả cuộc thi + chế độ trình chiếu trao giải (15/10/2026) */
:root { --vang-dam: #b8860b; --kim: linear-gradient(135deg, #f7d774, #e0a800 55%, #f5c933); }
.kq-xem-truoc { margin: 0; padding: 10px 16px; background: #fff3dc; color: #8a5300; font-weight: 600; text-align: center; border-bottom: 1px solid #f3dfb5; }

.kq { max-width: 1180px; margin: 0 auto; padding: 0 16px 64px; }
.kq-dau { text-align: center; padding: 40px 0 24px; }
.kq-nhan { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 99px; background: var(--do); color: #fff; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.kq-dau h1 { margin: 0 auto; max-width: 860px; font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.25; letter-spacing: -.02em; color: #0b2766; }
.kq-chu-de { margin: 12px auto 0; max-width: 760px; color: var(--muc-2); font-size: 1.05rem; }
.kq-chu-de b { color: var(--muc); }

.kq-giai { margin: 28px 0 0; }
.kq-giai h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.35rem; }
.kq-giai h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--vien), transparent); }
.kq-huy { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef1f8; font-size: 1.2rem; flex: none; }
.kq-giai:nth-child(1) .kq-huy { background: var(--kim); box-shadow: 0 6px 18px -6px rgba(224, 168, 0, .7); }
.kq-giai:nth-child(2) .kq-huy { background: linear-gradient(135deg, #eef2f6, #b9c3cf); }
.kq-giai:nth-child(3) .kq-huy { background: linear-gradient(135deg, #f3d3b5, #c98a55); }
.kq-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.kq-giai:nth-child(1) .kq-luoi { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }
.kq-the { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--vien); box-shadow: var(--bong); }
.kq-giai:nth-child(1) .kq-the { border: 2px solid #e8c14a; }
.kq-the__anh { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; background: #e9eef5; }
.kq-the__anh button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.kq-the__anh img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.kq-the__than { padding: 12px 14px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kq-the__ten { font-weight: 800; line-height: 1.3; }
.kq-the__ten small { display: block; color: var(--muc-2); font-weight: 500; font-size: .85rem; margin-top: 2px; }
.kq-the__diem { flex: none; padding: 3px 10px; border-radius: 99px; background: #eef4fb; color: var(--xanh-dam); font-weight: 800; font-variant-numeric: tabular-nums; }

.kq-trong { margin: auto; padding: 64px 16px; max-width: 520px; text-align: center; }
.kq-trong img { margin: 0 auto 16px; }
.kq-trong p { color: var(--muc-2); }

.kq-xem { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.kq-xem::backdrop { background: rgba(5, 10, 20, .85); }
.kq-xem img { max-width: 94vw; max-height: 86vh; border-radius: 8px; }
.kq-xem p { margin: 10px 0 0; color: #fff; text-align: center; font-weight: 600; }
.kq-xem__dong { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.2rem; cursor: pointer; }

/* ── Trình chiếu ── */
.tc { position: fixed; inset: 0; z-index: 50; background: radial-gradient(ellipse at 50% 0%, #1b3f8a 0%, #0b1a3d 55%, #050b1c 100%); color: #fff; overflow: hidden; }
/* Lớp trong suốt (không chữ): mở tự động chưa toàn màn hình → lần bấm / phím đầu chỉ bật toàn màn hình, không lật trang */
.tc-toan { position: absolute; z-index: 5; inset: 0; background: transparent; }
.tc-toan[hidden] { display: none; }
.tc-khung { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 4vw 10vh; text-align: center; }
.tc-trang { animation: tc-vao .7s var(--em) both; width: 100%; display: flex; flex-direction: column; align-items: center; min-height: 0; max-height: 100%; }
@keyframes tc-vao { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.tc-logo { display: flex; align-items: center; justify-content: center; gap: 3vh; margin-bottom: 3vh; }
.tc-logo img { width: min(17vh, 150px); height: auto; }
.tc-logo img + img { width: min(15vh, 135px); filter: drop-shadow(0 4px 16px rgba(245, 201, 51, .35)); }
.tc-nho { margin: 0 0 1.5vh; color: #f5c933; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: clamp(.9rem, 2vh, 1.4rem); }
.tc-to { margin: 0; max-width: 90vw; font-size: clamp(1.6rem, 5.5vh, 4rem); line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.tc-phu { margin: 2vh 0 0; max-width: 80vw; color: #c9d6f0; font-size: clamp(1rem, 2.6vh, 1.7rem); }
.tc-giai { margin: 0 0 3vh; font-size: clamp(2rem, 7vh, 5rem); font-weight: 900; background: var(--kim); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(245, 201, 51, .35)); }
.tc-luoi { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 2.5vh 2vw; min-height: 0; max-width: 94vw; }
.tc-the { display: flex; flex-direction: column; align-items: center; animation: tc-vao .7s var(--em) both; }
.tc-the__anh { display: flex; gap: 6px; }
.tc-the__anh img { height: var(--cao, 52vh); max-width: 40vw; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8); }
.tc-the__ten { margin-top: 1.4vh; font-weight: 800; font-size: clamp(1rem, 2.6vh, 1.9rem); max-width: 40vw; line-height: 1.25; }
.tc-the__ten small { display: block; font-weight: 600; color: #c9d6f0; font-size: .75em; }
.tc-the__diem { margin-top: .6vh; color: #f5c933; font-weight: 800; font-size: clamp(.9rem, 2.2vh, 1.5rem); }
.tc-dk { position: absolute; left: 50%; bottom: 2vh; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: 99px; background: rgba(255, 255, 255, .08); opacity: .35; transition: opacity .2s; }
.tc-dk:hover { opacity: 1; }
.tc-dk button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer; }
.tc-dk span { min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
body.dang-chieu { overflow: hidden; }

@media (max-width: 640px) {
  .kq-dau { padding-top: 28px; }
  .kq-luoi, .kq-giai:nth-child(1) .kq-luoi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kq-the__than { flex-direction: column; padding: 10px; }
}

/* Logo Chuyển đổi số cạnh logo phường (15/10/2026) */
.dau-trang .thuong-hieu .logo-cds { width: 40px; height: 40px; margin-left: -4px; }
.kq-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 14px; }
.kq-trong .kq-logo img { margin: 0; }
