:root {
  --nen: #f7f2ea;
  --chu: #26211c;
  --phu: #6d635a;
  --nut: #26211c;
  --chu-nut: #fffaf3;
  --vien: #ddd3c5;
  --nut-mo: #e9e1d5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 12px calc(24px + env(safe-area-inset-bottom));
  background: var(--nen);
  color: var(--chu);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.dau { padding: 16px 0 2px; }
h1 { margin: 0; font: 600 26px/1.2 Georgia, "Times New Roman", serif; }
.dau p { margin: 4px 0 0; color: var(--phu); font-size: 15px; }
.thanh-tim { position: sticky; top: 0; z-index: 2; margin: 0 -12px; padding: 8px 12px 6px; background: var(--nen); }
.o-tim { position: relative; }
.o-tim label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.o-tim input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--vien);
  border-radius: 10px;
  background: #fff;
  color: var(--chu);
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}
.o-tim input::-webkit-search-cancel-button { display: none; }
.o-tim input:focus { outline: 2px solid var(--chu); outline-offset: 1px; }
#xoa-tim {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--phu);
  font-size: 24px;
  line-height: 1;
}
.hang-chip { display: flex; gap: 6px; margin: 8px -12px 0; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
.hang-chip::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--vien);
  border-radius: 999px;
  background: #fff;
  color: var(--chu);
  font: inherit;
  font-size: 14px;
}
.chip[aria-pressed="true"] { border-color: var(--nut); background: var(--nut); color: var(--chu-nut); }
.dem { margin: 4px 0 0; color: var(--phu); font-size: 13px; }
.dem:empty { display: none; }
.bao-gan { margin: 8px 0; color: var(--phu); font-size: 14px; }
.luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; margin-top: 8px; }
.the { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 120px; }
.khung-anh { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--nut-mo); }
.khung-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.so {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(38, 33, 28, .88);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
h2 { margin: 8px 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.hang-nut { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.nut {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--nut);
  color: var(--chu-nut);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.nut:focus-visible { outline: 2px solid var(--chu); outline-offset: 2px; }
.nut-mo { background: var(--nut-mo); color: var(--phu); font-weight: 500; }
.nut-phu {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--chu);
  border-radius: 10px;
  background: transparent;
  color: var(--chu);
  font: inherit;
  font-weight: 600;
}
.khong-thay { margin: 24px 0; text-align: center; color: var(--phu); }
.khong-thay p { margin: 0 0 10px; }
.tro-giup { margin-top: 26px; padding: 12px 14px; border: 1px solid var(--vien); border-radius: 10px; }
.tro-giup summary { font-weight: 600; cursor: pointer; }
.tro-giup ol { margin: 10px 0; padding-left: 20px; }
.bao-chep { margin: 8px 0 0; font-size: 14px; color: var(--phu); overflow-wrap: anywhere; }
.bao-chep:empty { display: none; }
.cuoi { margin-top: 20px; font-size: 13px; color: var(--phu); }
.cuoi p { margin: 6px 0; }
@media (min-width: 640px) {
  .luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
