.gwd-live-card {
  --gwd-card-bg: #241307;
  --gwd-card-border: #d7bc82;
  --gwd-title-color: #fff;
  --gwd-count-color: #ffdb69;
  --gwd-label-color: #fff;

  --gwd-card-height: 520px;
  --gwd-image-width: 100%;
  --gwd-image-position: center bottom;

  position: relative;
  width: 100%;
  height: var(--gwd-card-height);
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  color: #fff;
  background: #17130ecc;
}

.gwd-live-card *,
.gwd-live-card *::before,
.gwd-live-card *::after {
  box-sizing: border-box;
}

.gwd-live-card__background {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(26, 12, 3, 0.35), rgba(26, 12, 3, 0.05)),
    var(--gwd-card-background-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.gwd-live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    linear-gradient(300.58deg, #f4cf7f 0.7%, rgba(153, 153, 153, 0) 34.99%),
    linear-gradient(121.6deg, #f4cf7f 0.59%, rgba(153, 153, 153, 0) 43.14%);
  -webkit-mask:
    linear-gradient(#f4cf7f 0 0) content-box,
    linear-gradient(#f4cf7f 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gwd-live-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -20px 40px rgba(0, 0, 0, 0.14);
}

/* Header */

.gwd-live-card__header {
  position: absolute;
  z-index: 6;
  top: 20px;
  left: 20px;
  right: 20px;
}

.gwd-live-card__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gwd-title-color);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gwd-live-card__live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff1616;
  box-shadow: 0 0 12px rgba(255, 22, 22, 0.45);
}

/* Media */

.gwd-live-card__media {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.gwd-live-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: var(--gwd-image-position);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.38));
}

/* Nội dung */

.gwd-live-card__content {
  position: absolute;
  z-index: 7;
}

.gwd-live-card__count {
  color: var(--gwd-count-color);
  font-size: 50px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 18px rgba(255, 170, 29, 0.12);
}

.gwd-live-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.gwd-live-card__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--gwd-label-color);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.9;
}

.gwd-live-card__user-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.gwd-live-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8cc 0%, #ffe47a 48%, #ffb617 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 10px rgba(0, 0, 0, 0.18);
  color: #1e1306 !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.gwd-live-card__button:hover {
  color: #1e1306 !important;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 16px rgba(0, 0, 0, 0.23);
}

/* Vòng sáng */

.gwd-live-card--horizontal .gwd-live-card__glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: url(/wp-content/uploads/2026/08/as.webp);
  background-size: cover;
  background-repeat: no-repeat;
}

.gwd-live-card__glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background: url(/wp-content/uploads/2026/08/frame-live.webp);
  background-size: cover;
  background-repeat: no-repeat;
}

.gwd-live-card__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 175, 52, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.gwd-live-card__ring--1 {
  width: 170px;
  height: 170px;
}

.gwd-live-card__ring--2 {
  width: 240px;
  height: 240px;
}

.gwd-live-card__ring--3 {
  width: 320px;
  height: 320px;
}

.gwd-live-card__star {
  position: absolute;
  width: 26px;
  height: 26px;
}

.gwd-live-card__star::before,
.gwd-live-card__star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 174, 51, 0.75),
    transparent
  );
  transform: translate(-50%, -50%);
}

.gwd-live-card__star::before {
  width: 100%;
  height: 2px;
}

.gwd-live-card__star::after {
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 174, 51, 0.75),
    transparent
  );
}

.gwd-live-card__star--1 {
  top: 12%;
  left: 10%;
}

.gwd-live-card__star--2 {
  top: 6%;
  right: 12%;
}

.gwd-live-card__star--3 {
  right: 5%;
  bottom: 18%;
}

.gwd-live-card__star--4 {
  left: 8%;
  bottom: 12%;
}

/**
 * ===========================
 * Vertical layout
 * ===========================
 */

.gwd-live-card--vertical {
  --gwd-card-height: 520px;
}

.gwd-live-card--vertical .gwd-live-card__glow {
  top: 0;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
}

.gwd-live-card--vertical .gwd-live-card__media {
  top: 55px;
  right: 5%;
  bottom: 78px;
  left: 5%;
}

.gwd-live-card--vertical .gwd-live-card__image {
  max-width: var(--gwd-image-width);
  margin: 0 auto;
}

.gwd-live-card--vertical .gwd-live-card__content {
  right: 20px;
  bottom: 15px;
  left: 20px;
}

/**
 * ===========================
 * Horizontal layout
 * ===========================
 */

.gwd-live-card--horizontal {
  --gwd-card-height: 250px;
}

.gwd-live-card--horizontal .gwd-live-card__glow {
  right: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-10%);
}

.gwd-live-card--horizontal .gwd-live-card__media {
  top: 45px;
  bottom: -3px;
  left: 25px;
  width: 50%;
}

.gwd-live-card--horizontal .gwd-live-card__image {
  max-width: var(--gwd-image-width);
  margin-right: auto;
}

.gwd-live-card--horizontal .gwd-live-card__content {
  top: 50%;
  right: 22px;
  width: 44%;
  transform: translateY(-42%);
  text-align: right;
}

.gwd-live-card--horizontal .gwd-live-card__count {
  font-size: clamp(42px, 5vw, 58px);
}

.gwd-live-card--horizontal .gwd-live-card__footer {
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  margin-top: 10px;
}

/* Responsive */

@media (max-width: 849px) {
  .gwd-live-card {
    border-radius: 20px;
  }

  .gwd-live-card--horizontal {
    --gwd-card-height: 220px;
  }

  .gwd-live-card--horizontal .gwd-live-card__media {
    left: 8px;
    width: 53%;
  }

  .gwd-live-card--horizontal .gwd-live-card__content {
    right: 15px;
    width: 47%;
  }

  .gwd-live-card__header {
    top: 16px;
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 549px) {
  .gwd-live-card--vertical {
    --gwd-card-height: 450px;
  }

  .gwd-live-card--vertical .gwd-live-card__media {
    top: 58px;
    right: 0;
    bottom: 76px;
    left: 0;
  }

  .gwd-live-card--horizontal {
    --gwd-card-height: 200px;
  }

  .gwd-live-card--horizontal .gwd-live-card__media {
    top: 48px;
    left: -10px;
    width: 58%;
  }

  .gwd-live-card--horizontal .gwd-live-card__content {
    right: 12px;
    width: 48%;
  }

  .gwd-live-card--horizontal .gwd-live-card__footer {
    gap: 15px;
  }

  .gwd-live-card__button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
  }
}
