html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;

  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url("https://github.com/konrepo/KhmerDrama/raw/main/bg/backs.jpg") center/cover no-repeat;

  font-family: 'Segoe UI', Arial, sans-serif;
  color: white;
  padding-bottom: env(safe-area-inset-bottom);
}

.overlay {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.content {
  width: 100%;
  max-width: 430px;
  padding: 20px;
}

/* Logo */
.logo {
  width: 115px;
  height: 115px;
  border-radius: 12%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Titles */
h1 {
  font-size: 44px;
  margin: 0 0 8px;
  line-height: 1.05;
}

h2 {
  font-size: 38px;
  margin: 0 0 12px;
  line-height: 1.1;
}

/* Subtitle */
.subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 18px;
}

/* Labels */
.label {
  font-size: 18px;
  opacity: 0.85;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}

.label a,
.label a:visited,
.label a:active {
  color: white;
  text-decoration: none;
}

.label a:hover {
  color: white;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 320px;
  max-width: 85vw;

  padding: 16px 24px;
  margin-top: 10px;

  text-decoration: none;
  color: white;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Icons */
.icon {
  width: 22px;
  height: 22px;
  filter: brightness(1.2);
}

/* Colors */
.btn.youtube {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.btn.udid {
  background: linear-gradient(135deg, #ff0033, #cc002b);
}

.btn.nuvio {
  background: linear-gradient(135deg, #00b894, #019875);
}

.btn.music {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.btn.dns {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.btn.spot {
  background: linear-gradient(135deg, #7bed9f, #2ed573);
}

/* Notes */
.note {
  font-size: 14px;
  opacity: 0.9;
  margin: 20px auto 10px;
  line-height: 1.7;
  max-width: 360px;

  text-align: center;
  font-weight: normal;
}

@media (max-width: 430px) {
  .logo {
    width: 105px;
    height: 105px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 16px;
  }

  .btn {
    font-size: 21px;
  }
}


/* App buttons responsive grid */
.content {
  max-width: 1100px;
}

#apps-section[style*="display:block"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  justify-content: center;
  gap: 12px;
}

#apps-section > br {
  display: none;
}

#apps-section .label,
#apps-section .note {
  grid-column: 1 / -1;
  text-align: center;
}

#apps-section .btn {
  width: 220px;
  max-width: 220px;
  height: 70px;
  margin-top: 0;
  padding: 14px 16px;
  font-size: 18px;
}

/* App buttons dns */
#apps-section > a.dns:first-of-type {
  grid-column: 1 / -1;
  justify-self: center;
}
