:root {
  --bg-main: #FFFFFF;
  --red-main: #E50914;
  --red-soft: #ffe6e8;
  --green-main: #16A34A;
  --text-main: #171717;
  --text-muted: #5f5f5f;
  --border-soft: #eeeeee;
  --card-bg: #ffffff;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius-xl: 28px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg-main);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.age-locked {
  overflow: hidden;
}

.public-content {
  transition: filter 0.22s ease, transform 0.22s ease;
}

body.age-locked .public-content {
  filter: blur(14px);
  transform: scale(1.015);
  pointer-events: none;
  user-select: none;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.045), transparent 32%),
    var(--bg-main);
  display: flex;
  justify-content: center;
  padding: 18px 12px 28px;
}

.app-frame {
  width: 100%;
  max-width: 820px;
  min-height: calc(100vh - 46px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-soft);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
}

.app-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red-main), transparent);
  opacity: 0.9;
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.22s ease;
  min-height: var(--header-height);
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  transition: width 0.22s ease, justify-content 0.22s ease;
}

.logo {
  width: min(100%, 680px);
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.08));
  transition: width 0.22s ease, filter 0.22s ease;
}

.top-menu {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-menu::-webkit-scrollbar {
  display: none;
}

.top-menu a {
  flex: 0 0 auto;
  color: #333;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(229, 9, 20, 0.14);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.site-header.is-compact {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: max(8px, env(safe-area-inset-top));
  width: calc(100% - 20px);
  max-width: 820px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(229, 9, 20, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  gap: 10px;
}

.site-header.is-compact .logo-link {
  width: auto;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.site-header.is-compact .logo {
  width: clamp(112px, 32vw, 172px);
  filter: none;
}

.site-header.is-compact .top-menu {
  display: flex;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px 0;
}

.intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 8px 14px;
  background: var(--red-soft);
  color: #9f0610;
  border: 1px solid rgba(229, 9, 20, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-main);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.12);
}

h1 {
  width: 100%;
  max-width: 660px;
  margin: 0;
  color: var(--text-main);
  font-size: clamp(25px, 6.2vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.9px;
}

.subtitle {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.55;
  font-weight: 500;
}

.notice-card {
  width: 100%;
  max-width: 650px;
  margin-top: 20px;
  padding: 16px 15px;
  border: 1px solid rgba(229, 9, 20, 0.12);
  background: linear-gradient(180deg, #ffffff, #fffafa);
  border-radius: 22px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.045);
}

.notice-title {
  margin: 0 0 6px;
  color: #1b1b1b;
  font-size: 15px;
  font-weight: 800;
}

.notice-text {
  margin: 0;
  color: #686868;
  font-size: 13.5px;
  line-height: 1.55;
}

.feed-section {
  width: 100%;
  max-width: 720px;
  margin-top: 22px;
}

.feed-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 0 2px 12px;
}

.feed-title-row h2 {
  margin: 0;
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.feed-title-row span {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.feed-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.profile-card.is-featured {
  border: 2px solid rgba(229, 9, 20, 0.96);
  box-shadow:
    0 0 0 4px rgba(229, 9, 20, 0.09),
    0 14px 32px rgba(229, 9, 20, 0.20);
}

.hot-label {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: rgba(229, 9, 20, 0.96);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1px;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.26);
}

.media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #f3f3f3;
  overflow: hidden;
}

.media-box img,
.media-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 9px 9px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  color: #fff;
  text-align: left;
}

.profile-name {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.privacy-btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  background: var(--red-main);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(229, 9, 20, 0.30);
}

.feed-loading {
  margin: 16px auto 0;
  color: #777;
  font-size: 13px;
  font-weight: 700;
}

.load-more {
  margin: 16px auto 0;
  min-height: 44px;
  border: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

footer {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.age-locked .age-gate {
  display: flex;
}

.age-box,
.exit-box {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid rgba(229, 9, 20, 0.14);
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.16);
  padding: 24px 18px 18px;
  text-align: center;
  animation: popIn 0.32s ease both;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.age-icon,
.exit-mini-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 900;
  border: 1px solid rgba(229, 9, 20, 0.16);
}

.age-box h2,
.exit-box h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.age-box p,
.exit-box p {
  margin: 10px auto 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 360px;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:active,
.privacy-btn:active,
.btn-understood:active {
  transform: scale(0.985);
}

.btn-enter {
  background: var(--red-main);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.24);
}

.btn-exit {
  background: #f4f4f4;
  color: #343434;
  border: 1px solid #e8e8e8;
}

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.exit-modal[hidden] {
  display: none;
}

.exit-box {
  position: relative;
}

.exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.btn-understood {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--green-main);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
}

@media (max-width: 520px) {
  .page-shell {
    padding: 10px 8px 18px;
  }

  .app-frame {
    min-height: calc(100vh - 28px);
    border-radius: 28px;
    padding: 14px 10px 20px;
  }

  .site-header {
    padding-top: 2px;
  }

  .top-menu a {
    font-size: 10px;
    padding: 7px 8px;
  }

  .notice-card {
    border-radius: 20px;
  }

  .feed-grid {
    gap: 8px;
  }

  .profile-card {
    border-radius: 18px;
  }

  .profile-name {
    font-size: 13px;
  }

  .privacy-btn {
    min-height: 36px;
    font-size: 10px;
  }
}

@media (min-width: 900px) {
  .page-shell {
    padding-top: 26px;
  }
}
