:root {
  --ink: #102343;
  --navy: #173763;
  --blue: #1f65a8;
  --line: #c9d8ea;
  --paper: #f6fbff;
  --gold: #d8952d;
  --red: #c8322b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1280px;
  background: #edf6ff;
}

body {
  margin: 0;
  min-width: 1280px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0) 280px),
    linear-gradient(180deg, #eff8ff 0%, #f8fcff 46%, #edf6ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  z-index: 100;
  top: 40px;
  left: 0;
  right: 0;
}

.header-inner {
  width: 1200px;
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-top {
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  margin: 0 40px;
  position: relative;
  z-index: 101;
}

.logo-top:hover {
  transform: scale(1.08);
}

.logo-top img {
  max-height: 150px;
  width: auto;
  display: block;
  transform: translateY(-25%);
  pointer-events: none;
}

.brand {
  width: 190px;
  position: relative;
  display: grid;
  gap: 0;
  line-height: .82;
  color: #12305b;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255,255,255,.72);
}

.brand-main,
.brand-sub {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

.brand-sub {
  margin-left: 36px;
}

.brand-seal {
  position: absolute;
  right: 4px;
  bottom: -6px;
  width: 24px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #fff;
  background: #c62620;
  font-size: 15px;
  font-style: normal;
  font-family: serif;
}

.main-nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(49,86,132,.16);
  border-radius: 40px;
  padding: 0 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.main-nav a {
  height: 70px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #172b4a;
  position: relative;
}

.main-nav a:not(.logo-top).active::after,
.main-nav a:not(.logo-top):hover::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  background: var(--gold);
}

.download-top {
  min-width: 154px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d99f45;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff4d6, #f5c572);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.58), 0 8px 20px rgba(43, 76, 126, .12);
  color: #6c4216;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  height: 610px;
  position: relative;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.png");
  background-size: cover;
  background-position: center top;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244,250,255,.88) 0%, rgba(244,250,255,.52) 34%, rgba(244,250,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 72%, #eaf5ff 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 1200px;
  margin: 0 auto;
  padding-top: 165px;
}

.version-tag {
  width: 170px;
  height: 34px;
  margin-left: 265px;
  display: grid;
  place-items: center;
  border: 1px solid #91abd0;
  border-radius: 7px;
  background: linear-gradient(180deg, #eef8ff, #c9def4);
  color: #173763;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.62);
}

.hero h1 {
  margin: 28px 0 4px;
  max-width: 560px;
  color: #153c78;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  line-height: 1.3;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255,255,255,.85), 0 20px 34px rgba(53, 93, 145, .2);
}

.hero-script {
  margin: 8px 0 24px 190px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-style: italic;
  font-weight: 800;
}

.hero-pills {
  display: inline-flex;
  gap: 8px;
  padding: 7px 14px;
  margin-left: 64px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(119,150,190,.26);
  box-shadow: 0 10px 24px rgba(77, 120, 170, .12);
  color: #193250;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-pills span + span::before {
  content: "◆";
  margin-right: 8px;
  color: #1c5794;
}

.quick-panel {
  position: relative;
  z-index: 3;
  width: 1150px;
  height: 190px;
  margin: -58px auto 38px;
  padding: 14px;
  display: grid;
  grid-template-columns: 525px 1fr;
  gap: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #214d83, #133763);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 18px 35px rgba(29, 67, 111, .25), inset 0 0 0 2px rgba(25,61,104,.8);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(173,203,237,.46);
}

.quick-card {
  height: 160px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(57,115,181,.88), rgba(29,72,125,.86));
  border-right: 1px solid rgba(204,225,249,.28);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.quick-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.quick-card.primary {
  background:
    linear-gradient(180deg, rgba(255,217,130,.92), rgba(203,128,32,.94)),
    radial-gradient(circle at 42% 24%, #fff9cf, transparent 80px);
}

.quick-card.primary:hover {
  background:
    linear-gradient(180deg, rgba(255,225,150,.95), rgba(215,140,40,.96)),
    radial-gradient(circle at 42% 24%, #fff9cf, transparent 80px);
}

.quick-card:last-child {
  border-right: 0;
}

.quick-card:hover .quick-icon {
  transform: scale(1.15) rotate(5deg);
  background: #fff;
  color: var(--red);
}

.quick-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #173763;
  background: rgba(255,255,255,.84);
  font-size: 27px;
  box-shadow: 0 10px 20px rgba(10,28,55,.18);
  transition: all 0.3s ease;
}

.quick-card strong {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-card small {
  font-size: 13px;
  font-weight: 500;
}

.event-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2);
}

.event-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.event-copy {
  position: absolute;
  top: 22px;
  left: 48px;
  color: #9e2a1e;
  text-shadow: 0 2px 0 rgba(255,255,255,.56);
}

.event-copy span {
  color: #71410d;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-copy strong {
  display: block;
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: .95;
  font-weight: 800;
  font-style: italic;
}

.event-copy button {
  margin-top: 16px;
  padding: 8px 24px;
  border: 1px solid #b46f22;
  border-radius: 999px;
  background: #fff2d8;
  color: #71410d;
  font-weight: 800;
  text-transform: uppercase;
}

.content-grid {
  width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 292px 1fr 306px;
  gap: 28px;
  align-items: start;
}

.fan-box,
.ranking,
.news-card,
.feature-card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(35, 74, 122, .11);
}

.fan-box {
  height: 570px;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.fan-box iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block;
}

.fan-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0 14px;
}

.fan-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #593412, #d79530);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.fan-head strong {
  display: block;
  font-size: 16px;
}

.fan-head span {
  color: #75849b;
  font-size: 12px;
}

.post-card {
  margin: 0 0 14px;
  padding: 16px;
  min-height: 132px;
  border: 1px solid #d6e2ef;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fbff, #eef5fc);
  font-size: 13px;
  line-height: 1.8;
}

.post-card strong {
  display: block;
  margin-bottom: 8px;
  color: #244568;
  line-height: 1.45;
}

.post-card p {
  margin: 0;
  color: #3f516b;
}

.post-card span {
  display: block;
  margin-top: 6px;
  color: #b36318;
  font-weight: 700;
}

.more-button,
.outline-button {
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #b9cce4;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbff, #dceaf8);
  color: #163154;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking {
  min-height: 570px;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.ranking-header {
  background: linear-gradient(180deg, #203e6b, #17345d);
}

.ranking h2 {
  display: none;
}

.ranking-tabs {
  display: flex;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  background: #bdc3c7; /* Màu xám khi chưa active */
  border: none;
  color: #7f8c8d;
  padding: 16px 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  height: 64px;
}

.tab-btn.active {
  background: linear-gradient(180deg, #203e6b, #17345d); /* Màu xanh khi active */
  color: #fff;
}

.tab-btn:hover:not(.active) {
  background: #95a5a6;
  color: #fff;
}

table {
  width: calc(100% - 32px);
  margin: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 7px;
}

th,
td {
  height: 41px;
  padding: 0 14px;
  border-bottom: 1px solid #dce6f1;
  color: #2e3d52;
  font-size: 13px;
}

th {
  color: #253b60;
  font-weight: 700;
  text-transform: uppercase;
}

td:nth-child(1),
th:nth-child(1) {
  width: 72px;
  text-align: center;
}

td:nth-child(2),
th:nth-child(2) {
  text-align: left;
}

.medal {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35);
}

.gold { background: linear-gradient(180deg, #ffd86d, #d58b21); }
.silver { background: linear-gradient(180deg, #e9edf4, #98a6b7); }
.bronze { background: linear-gradient(180deg, #f2b17a, #b7662f); }

.ranking p {
  margin: 2px 18px 18px;
  color: #8a9ab0;
  font-size: 12px;
  text-align: left;
}

.outline-button {
  width: 180px;
  margin: 0 auto;
}

.news-stack {
  display: grid;
  gap: 28px;
}

.news-card {
  height: 266px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  padding: 24px;
  display: grid;
  align-content: end;
  isolation: isolate;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/features-sheet.png");
  background-size: 300% 200%;
}

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,31,62,.05), rgba(11,33,67,.88));
}

.news-main::before {
  background-position: 100% 0;
}

.guide::before {
  background-position: 100% 100%;
}

.news-card span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 17px 22px;
  background: linear-gradient(180deg, rgba(25,61,108,.92), rgba(21,51,91,.8));
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 21px;
  line-height: 1.2;
}

.news-card small {
  font-size: 13px;
  font-weight: 800;
}

.features {
  width: 1120px;
  margin: 48px auto 44px;
}

.features h2 {
  margin: 0 0 24px;
  color: #1c4379;
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.feature-card {
  height: 224px;
  overflow: hidden;
  border-radius: 7px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(35, 74, 122, .18);
}

.feature-img {
  display: block;
  height: 148px;
  background-image: url("../img/features-sheet.png");
  background-size: 300% 200%;
  border-bottom: 1px solid #d5e2ef;
}

.pos-1 { background-position: 0 0; }
.pos-2 { background-position: 50% 0; }
.pos-3 { background-position: 100% 0; }
.pos-4 { background-position: 0 100%; }
.pos-5 { background-position: 50% 100%; }
.pos-6 { background-position: 100% 100%; }

.feature-card strong {
  display: block;
  margin: 17px 8px 4px;
  color: #173763;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.feature-card small {
  color: #53677f;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid #d7e4f1;
  background: rgba(250,253,255,.66);
}

.footer-inner {
  width: 1120px;
  height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr 250px;
  gap: 34px;
  align-items: center;
}

.footer-brand .brand-main,
.footer-brand .brand-sub {
  font-size: 28px;
}

.footer-inner nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.footer-inner nav a {
  color: #71839c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.age-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  color: #5d6f88;
  font-size: 12px;
  line-height: 1.45;
}

.age-box strong {
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #253b60;
  border-radius: 8px;
  color: #253b60;
  font-size: 31px;
  line-height: 1;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 31, 62, 0.85);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #fff url("../img/hero.png") no-repeat center top;
  background-size: 100% 80px;
  width: 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-header {
  height: 80px;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: rgba(23, 55, 99, 0.7);
}

.modal-header h2 {
  font-size: 20px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.close {
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  background: #f8fbff;
}

.modal-body p {
  text-align: center;
  margin-bottom: 25px;
  color: #4a5a71;
  font-weight: 600;
}

.download-links {
  display: grid;
  gap: 15px;
}

.dl-btn {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1e8f0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  text-decoration: none;
}

.dl-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: transparent;
}

.dl-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 24px;
  margin-right: 20px;
  color: #fff;
  transition: transform 0.3s ease;
}

.dl-btn:hover .dl-icon {
  transform: rotate(-10deg);
}

.dl-text {
  flex: 1;
}

.dl-text strong {
  display: block;
  font-size: 16px;
  color: #1a2b4b;
  margin-bottom: 2px;
}

.dl-text span {
  font-size: 12px;
  color: #8c9bb3;
}

.arrow-right {
  color: #c9d8ea;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.dl-btn:hover .arrow-right {
  transform: translateX(5px);
  color: #173763;
}

/* Colors for buttons */
.dl-btn.direct .dl-icon { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.dl-btn.google .dl-icon { background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335); background-size: 200% 200%; }
.dl-btn.mega .dl-icon { background: linear-gradient(135deg, #ff4b2b, #ff416c); }

.dl-btn.direct:hover { background: rgba(46, 204, 113, 0.05); border-color: #2ecc71; }
.dl-btn.google:hover { background: rgba(66, 133, 244, 0.05); border-color: #4285f4; }
.dl-btn.mega:hover { background: rgba(231, 76, 60, 0.05); border-color: #e74c3c; }

.dl-note {
  margin-top: 25px;
  padding: 15px;
  background: rgba(31, 101, 168, 0.05);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: #5c6b82;
}

.dl-note i {
  color: var(--blue);
  margin-right: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
