* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --gold: #8d6b2c;
  --gold-deep: #6f5420;
  --text: #241f1a;
  --muted: #5e564c;
  --line: rgba(141, 107, 44, 0.28);
  --shadow: 0 10px 30px rgba(36, 31, 26, 0.06);
  --radius: 22px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Traditional Arabic", "Sakkal Majalla", Tahoma, Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.topbar,
.container,
.invite-wrap,
.footer {
  width: min(1100px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.topbar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.couple {
  width: 210px;
  height: 270px;
  flex: 0 0 210px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px 28px;
}

.logo {
  width: 168px;
  flex: 0 0 168px;
}

.brand-text h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--gold-deep);
  margin-bottom: 6px;
  line-height: 1.3;
  font-weight: normal;
}

.brand-text h2 {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--text);
  font-weight: normal;
  margin-bottom: 8px;
  line-height: 1.55;
}

.kicker,
.kicker-en,
.info-card li span,
.info-card em,
.footer,
.title-block p,
.status-box {
  color: var(--muted);
}

.kicker {
  margin-bottom: 6px;
}

.kicker-en,
.footer-en,
.en-block,
.info-card em,
.title-block p {
  font-family: Georgia, "Times New Roman", serif;
  direction: ltr;
  unicode-bidi: isolate;
}

.info-card em {
  text-align: right;
}

.container {
  margin-top: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.invitation-card,
.info-card,
.stream-card {
  padding: 24px;
}

.invitation {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 2;
  overflow-wrap: anywhere;
}

.closing {
  margin-top: 16px;
  color: var(--gold-deep);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.8;
}

.en-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
  direction: ltr;
  text-align: left;
}

.en-block p + p {
  margin-top: 8px;
}

.info-card h3,
.title-block h3 {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 1.2rem;
  font-weight: normal;
}

.info-card ul {
  list-style: none;
}

.info-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-card li span,
.info-card em {
  display: block;
  font-style: normal;
}

.info-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: normal;
}

.map-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  color: #ffffff;
  background: var(--gold-deep);
  font-family: inherit;
}

.invite-wrap {
  margin-bottom: 20px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.title-block p {
  text-align: right;
}

.live-badge {
  background: #fff;
  color: var(--gold-deep);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", serif;
}

.video-wrapper {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}

.video-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions button {
  margin-top: 16px;
}

.status-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.footer {
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.05rem;
  padding: 18px 16px 8px;
  line-height: 1.8;
}

.footer-logo {
  width: 92px;
  margin: 0 auto 8px;
}

@media (max-width: 860px) {
  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar,
  .container,
  .invite-wrap,
  .footer {
    width: calc(100% - 20px);
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    min-width: 0;
  }

  .logo {
    width: 110px;
    flex-basis: auto;
  }

  .couple {
    width: 124px;
    height: 164px;
    flex-basis: 124px;
  }

  .invitation-card,
  .info-card,
  .stream-card {
    padding: 18px 16px;
  }

  .invitation {
    line-height: 1.9;
  }

  .player-header,
  .actions {
    flex-direction: column;
  }

  .map-link,
  button,
  .actions button {
    width: 100%;
  }
}
