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);
}

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

@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;
  }
}
