:root {
	--bg-dark: #000000;
	--text-light: #f5f5f7;
	--text-dark: #1d1d1f;
	--secondary-text-light: #86868b;
	--secondary-text-dark: #86868b;
	--accent-color: #2997ff;
	--card-bg: rgba(255, 255, 255, 0.05);
	--card-border: rgba(255, 255, 255, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-dark);
	color: var(--text-light);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.single-page {
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 100vh;
	width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
}

/* Language Toggle Logic */
.lang-zh .lang-en,
.lang-en .lang-zh {
	display: none !important;
}

/* Header */
.main-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.2rem 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	background: rgba(10, 10, 10, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.header-logo {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #ffffff;
}

.header-logo a {
	color: #ffffff;
	text-decoration: none;
}

.lang-btn {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.35rem 0.9rem;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* Main Hub Container (Fully Fluid & Auto-Adapting) */
.hub-container {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: clamp(4.5rem, 8vh, 6rem) 1.5rem clamp(1rem, 2.5vh, 2rem) 1.5rem;
	box-sizing: border-box;
}

/* Background Orb */
.hero-bg-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

.hero-bg-orb {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 65vw;
	height: 65vw;
	background: radial-gradient(circle, rgba(90, 41, 255, 0.25) 0%, rgba(41, 151, 255, 0.15) 35%, rgba(10, 10, 40, 0.4) 60%, transparent 80%);
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.8;
	pointer-events: none;
}

/* Deep Space Stars */
.stars-container {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

#stars, #stars2, #stars3, #stars4, #stars5 {
	position: absolute;
	top: 0;
	left: 0;
}

@keyframes twinkle {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.1; }
}

@keyframes twinkleFast {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

#stars { animation: twinkle 4s infinite ease-in-out; }
#stars2 { animation: twinkle 6s infinite ease-in-out 1s; }
#stars3 { animation: twinkle 8s infinite ease-in-out 2s; }
#stars4 { animation: twinkleFast 2.5s infinite ease-in-out 0.5s; }
#stars5 { animation: twinkleFast 3s infinite ease-in-out 1.5s; }

.hero-bg-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
	pointer-events: none;
}

/* Center Content */
.hub-content {
	position: relative;
	z-index: 10;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.2rem, 3vh, 2.5rem);
	margin: auto 0;
	width: 100%;
}

.hero-title {
	font-size: clamp(2rem, 6.5vh, 5.5rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.04em;
	display: flex;
	flex-direction: column;
}

.title-line {
	display: block;
}

.hero-subtitle {
	font-size: clamp(0.85rem, 1.8vh, 1.15rem);
	font-weight: 300;
	color: var(--secondary-text-light);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-top: 0.2rem;
}

/* Nav Cards */
.nav-cards {
	display: flex;
	gap: clamp(0.8rem, 2vw, 2rem);
	margin-top: clamp(0.4rem, 1.5vh, 1rem);
	perspective: 1000px;
	width: 100%;
	justify-content: center;
}

.nav-card {
	position: relative;
	width: clamp(220px, 25vw, 290px);
	padding: clamp(1.2rem, 2.5vh, 2.2rem) clamp(1.4rem, 2vw, 2.2rem);
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: clamp(16px, 2vh, 24px);
	text-align: left;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: border-color 0.4s ease;
	overflow: hidden;
	transform-style: preserve-3d;
	box-sizing: border-box;
}

.nav-card:hover {
	border-color: rgba(255,255,255,0.3);
}

.card-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nav-card:hover .card-glow {
	opacity: 1;
}

.nav-card-title {
	font-size: clamp(1.1rem, 2.2vh, 1.5rem);
	font-weight: 600;
	margin-bottom: 0.3rem;
	transform: translateZ(30px);
}

.nav-card-desc {
	font-size: clamp(0.78rem, 1.5vh, 0.9rem);
	color: var(--secondary-text-light);
	font-weight: 400;
	transform: translateZ(20px);
}

.nav-card-arrow {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 1.1rem;
	opacity: 0;
	transform: translate(-10px, 10px);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-card:hover .nav-card-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

/* Hub Footer */
.hub-footer {
	position: relative;
	width: 100%;
	max-width: 1200px;
	padding: 1rem 1.5rem 0.5rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
	box-sizing: border-box;
}

.social-links {
	display: flex;
	gap: 1.8rem;
}

.social-btn {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	position: relative;
}

.social-btn:hover {
	opacity: 1;
}

.footer-copyright {
	color: var(--secondary-text-light);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

/* Mobile & Small Height Adjustments */
@media (max-width: 768px) {
	.main-header {
		padding: 1rem 1.25rem;
	}
	.nav-cards {
		flex-direction: column;
		align-items: center;
		gap: clamp(0.5rem, 1.2vh, 0.8rem);
		max-width: 350px;
		margin-top: 0.2rem;
	}
	.nav-card {
		width: 100%;
		padding: clamp(0.85rem, 1.6vh, 1.2rem) clamp(1.2rem, 3vw, 1.5rem);
		border-radius: 16px;
	}
	.nav-card-title {
		font-size: clamp(1.1rem, 2vh, 1.3rem);
		margin-bottom: 0.2rem;
	}
	.nav-card-desc {
		font-size: clamp(0.78rem, 1.4vh, 0.85rem);
	}
	.nav-card-arrow {
		top: 1rem;
		right: 1.2rem;
		font-size: 1rem;
	}
	.hub-footer {
		flex-direction: column;
		align-items: center;
		gap: 0.6rem;
		padding: 0.75rem 1rem 0.5rem 1rem;
		mix-blend-mode: normal;
	}
	.social-links {
		gap: 1.2rem;
		flex-wrap: wrap;
		justify-content: center;
	}
	.hero-bg-orb {
		width: 120vw;
		height: 120vw;
	}
}

/* --- Sub-page Styles --- */
.subpage-container {
	position: relative;
	width: 100%;
	min-height: 100vh;
	z-index: 10;
	padding: 8rem 4rem 4rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.subpage-header {
	text-align: center;
	margin-bottom: 4rem;
}

.subpage-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

.glass-panel {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 3rem;
	width: 100%;
	max-width: 1200px;
	margin-bottom: 2rem;
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	width: 100%;
	max-width: 1400px;
}

.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 3/4;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2rem 1.5rem 1.5rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: white;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.subpage-container {
		padding: 6rem 1.5rem 2rem 1.5rem;
	}
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.glass-panel {
		padding: 1.5rem;
	}
}



/* ==========================================================================
   SHARE MODAL (NEW GLASSMORPHIC DESIGN)
   ========================================================================== */

.share-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popup-modal.show {
    display: flex;
    opacity: 1;
}

.share-popup-content {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popup-modal.show .share-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Glass Pill Buttons (Language / Style) */
.glass-pill-group {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-pill-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.05em;
}

.glass-pill-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.glass-pill-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Glass Action Buttons */
.share-action-btn.glass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.05em;
}

.share-action-btn.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.share-action-btn.glass-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(255, 255, 255, 1);
}

.share-action-btn.glass-btn-primary:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Toast Message */
.share-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.share-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Language display toggle */
.share-popup-modal.modal-lang-zh .lang-en { display: none !important; }
.share-popup-modal.modal-lang-zh .lang-zh { display: inline-block !important; }
.share-popup-modal.modal-lang-en .lang-zh { display: none !important; }
.share-popup-modal.modal-lang-en .lang-en { display: inline-block !important; }

/* =========================================
   POSTER CARD COMPONENT STYLES
   ========================================= */

.share-poster-card {
  background: #0a0a0a;
  box-sizing: border-box;
  width: 100%;
  color: #fff;
  font-family: 'Inter', sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Double Frame Border */
.share-poster-card .poster-inner-frame {
  border: 1px solid rgba(255, 255, 255, 0.08); /* Clean modern border */
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Category Label */
.share-poster-card .poster-category {
  margin-bottom: 20px;
  text-align: left;
}

.share-poster-card .poster-category-primary {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent, #d4c4a8);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-poster-card .poster-category-secondary {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image Container */
.share-poster-card .poster-image-container {
  width: 100%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-poster-card .poster-image {
  width: 100%;
  display: block;
}

/* Text Art placeholder for text-only posters */
.share-poster-card .poster-text-art {
  width: 100%;
  aspect-ratio: 1.5;
  border: 1px dashed rgba(229, 193, 88, 0.12);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.02) 0%, transparent 75%);
  margin-bottom: 20px;
  position: relative;
  box-sizing: border-box;
}

.share-poster-card .poster-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(229, 193, 88, 0.04);
  position: absolute;
  top: 5px;
  left: 15px;
}

.share-poster-card .poster-art-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 0 10px;
}

.share-poster-card .poster-art-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent, #d4c4a8);
  text-transform: uppercase;
}

/* Titles and Metadata */
.share-poster-card .poster-details {
  margin-bottom: 15px;
  text-align: left;
}

.share-poster-card .poster-title-en {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.share-poster-card .poster-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--accent, #d4c4a8);
  margin: 0 0 12px 0;
}

.share-poster-card .poster-meta-row {
  font-size: 10.5px;
  color: #777;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  box-sizing: border-box;
}

/* Poster text contents */
.share-poster-card .poster-content {
  margin-bottom: 15px;
  text-align: left;
}

.share-poster-card .poster-content p {
  font-size: 12px;
  line-height: 1.75;
  text-align: justify;
  margin: 0 0 10px 0;
}

.share-poster-card .poster-content p:last-child {
  margin-bottom: 0;
}

.share-poster-card .poster-text-zh {
  font-family: 'Noto Serif SC', serif;
  color: #cccccc;
}

.share-poster-card .poster-text-en {
  font-family: 'Playfair Display', serif;
  color: #949494;
  font-style: italic;
}

/* EXIF display */
.share-poster-card .poster-exif {
  font-family: monospace;
  font-size: 9.5px;
  color: #666666;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid var(--accent, #d4c4a8);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: left;
}

/* Footer Section */
.share-poster-card .poster-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.share-poster-card .poster-footer-branding {
  text-align: left;
}

.share-poster-card .poster-brand-name {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.share-poster-card .poster-brand-sub {
  font-size: 9px;
  color: #666666;
  margin-top: 4px;
  line-height: 1.3;
}

.share-poster-card .poster-qrcode-box {
  width: 64px;
  height: 64px;
  background: #ffffff;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.share-poster-card .poster-qrcode-box img {
  width: 100% !important;
  height: 100% !important;
}

/* =========================================
   SPECIFIC STYLES FOR EXPORT MODE VS PREVIEW MODE
   ========================================= */

/* Modal Preview (280px wide) Specific overrides to keep it compact */
.share-card-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.share-card-preview .share-poster-card .poster-inner-frame {
  padding: 16px;
  outline-offset: -5px;
}

.share-card-preview .share-poster-card .poster-category {
  margin-bottom: 12px;
}

.share-card-preview .share-poster-card .poster-category-primary {
  font-size: 8.5px;
}

.share-card-preview .share-poster-card .poster-category-secondary {
  font-size: 7px;
  margin-top: 2px;
}

.share-card-preview .share-poster-card .poster-image-container {
  margin-bottom: 12px;
  aspect-ratio: 4/3;
}

.share-card-preview .share-poster-card .poster-image {
  height: 100%;
  object-fit: cover;
}

.share-card-preview .share-poster-card .poster-text-art {
  margin-bottom: 12px;
  padding: 0.8rem;
  aspect-ratio: 1.5;
}

.share-card-preview .share-poster-card .poster-quote-mark {
  font-size: 2rem;
  top: 2px;
  left: 8px;
}

.share-card-preview .share-poster-card .poster-art-title {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.share-card-preview .share-poster-card .poster-art-sub {
  font-size: 0.55rem;
}

.share-card-preview .share-poster-card .poster-details {
  margin-bottom: 10px;
}

.share-card-preview .share-poster-card .poster-title-en {
  font-size: 11.5px;
  margin-bottom: 2px;
}

.share-card-preview .share-poster-card .poster-title-zh {
  font-size: 10.5px;
  margin-bottom: 6px;
}

.share-card-preview .share-poster-card .poster-meta-row {
  font-size: 8px;
  padding-bottom: 6px;
}

.share-card-preview .share-poster-card .poster-content {
  margin-bottom: 10px;
  max-height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.share-card-preview .share-poster-card .poster-content p {
  font-size: 8.5px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.share-card-preview .share-poster-card .poster-exif {
  font-size: 7.5px;
  margin-bottom: 12px;
  padding: 4px 6px;
}

.share-card-preview .share-poster-card .poster-footer {
  padding-top: 10px;
}

.share-card-preview .share-poster-card .poster-brand-name {
  font-size: 8.5px;
}

.share-card-preview .share-poster-card .poster-brand-sub {
  font-size: 7px;
  margin-top: 2px;
}

.share-card-preview .share-poster-card .poster-qrcode-box {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 2px;
}

/* High-Res Capture Element (Fixed 600px wide) Specific overrides */
.share-poster-capture {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 600px;
  box-sizing: border-box;
}

.share-poster-capture .share-poster-card {
  width: 600px;
  border-radius: 0;
}

.share-poster-capture .share-poster-card .poster-inner-frame {
  padding: 40px;
}

.share-poster-capture .share-poster-card .poster-category {
  margin-bottom: 25px;
}

.share-poster-capture .share-poster-card .poster-category-primary {
  font-size: 13.5px;
}

.share-poster-capture .share-poster-card .poster-category-secondary {
  font-size: 10px;
  margin-top: 4px;
}

.share-poster-capture .share-poster-card .poster-image-container {
  margin-bottom: 30px;
}

.share-poster-capture .share-poster-card .poster-image {
  height: auto;
}

.share-poster-capture .share-poster-card .poster-text-art {
  margin-bottom: 30px;
  padding: 3rem 2rem;
  aspect-ratio: 1.5;
}

.share-poster-capture .share-poster-card .poster-quote-mark {
  font-size: 6rem;
  top: 10px;
  left: 25px;
}

.share-poster-capture .share-poster-card .poster-art-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-art-sub {
  font-size: 0.85rem;
}

.share-poster-capture .share-poster-card .poster-details {
  margin-bottom: 20px;
}

.share-poster-capture .share-poster-card .poster-title-en {
  font-size: 23px;
  margin-bottom: 6px;
}

.share-poster-capture .share-poster-card .poster-title-zh {
  font-size: 20px;
  margin-bottom: 15px;
}

.share-poster-capture .share-poster-card .poster-meta-row {
  font-size: 12px;
  padding-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-content {
  margin-bottom: 25px;
}

.share-poster-capture .share-poster-card .poster-content p {
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-exif {
  font-size: 10.5px;
  margin-bottom: 35px;
  padding: 10px 14px;
}

.share-poster-capture .share-poster-card .poster-footer {
  padding-top: 25px;
}

.share-poster-capture .share-poster-card .poster-brand-name {
  font-size: 13.5px;
}

.share-poster-capture .share-poster-card .poster-brand-sub {
  font-size: 10px;
  margin-top: 4px;
}

.share-poster-capture .share-poster-card .poster-qrcode-box {
  width: 80px;
  height: 80px;
  padding: 4px;
}

/* =========================================
   RESPONSIVE LAYOUT ADJUSTMENTS FOR MODAL
   ========================================= */

@media (max-width: 768px) {
  .share-layout {
    flex-direction: column;
  }
  
  .share-preview-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
  }

  .share-card-preview {
    max-width: 250px;
  }

  .share-controls-column {
    padding: 2.5rem 1.5rem;
  }

  .share-modal-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .share-modal-desc {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   MINIMAL STYLE OVERRIDES
   ========================================================================== */
.share-poster-card.style-minimal {
  background: #fcfbfa !important;
  color: #2a2a2a !important;
}

.share-poster-card.style-minimal .poster-inner-frame {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  outline: 1px solid rgba(0, 0, 0, 0.03) !important;
  outline-offset: -8px;
}

.share-poster-card.style-minimal .poster-category-primary {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-category-secondary {
  color: rgba(0, 0, 0, 0.35) !important;
}

.share-poster-card.style-minimal .poster-image-container {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.share-poster-card.style-minimal .poster-text-art {
  border: 1px dashed rgba(138, 123, 98, 0.2) !important;
  background: radial-gradient(circle, rgba(138, 123, 98, 0.03) 0%, transparent 75%) !important;
}

.share-poster-card.style-minimal .poster-quote-mark {
  color: rgba(138, 123, 98, 0.08) !important;
}

.share-poster-card.style-minimal .poster-art-title {
  color: #2a2a2a !important;
}

.share-poster-card.style-minimal .poster-art-sub {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-title-en {
  color: #1a1a1a !important;
}

.share-poster-card.style-minimal .poster-title-zh {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-meta-row {
  color: #666 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.share-poster-card.style-minimal .poster-content p {
  color: #444 !important;
}

.share-poster-card.style-minimal .poster-exif {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #666 !important;
  border-left: 2px solid #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.share-poster-card.style-minimal .poster-brand-name {
  color: #1a1a1a !important;
}

.share-poster-card.style-minimal .poster-brand-sub {
  color: #777 !important;
}

.share-poster-card.style-minimal .poster-qrcode-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================================================
   COMPLETE SERIES (MASONRY / GALLERY) STYLES
   ========================================================================== */
.location-section {
  margin-bottom: 3rem;
}

.section-eyebrow {
  margin-bottom: 1.2rem;
  color: var(--secondary-text-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.location-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.48fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.location-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.location-pin-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #a9d4ff;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(83, 170, 255, 0.24);
  border-radius: 50%;
}

.location-kicker,
.coordinate-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.location-name {
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-country {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.location-coordinates {
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.location-coordinates strong {
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.location-plot {
  position: relative;
  height: 82px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.16);
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.location-plot-axis {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.axis-horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.axis-vertical {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.location-plot-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #8bc5ff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(41, 151, 255, 0.14), 0 0 18px rgba(41, 151, 255, 0.7);
  transform: translate(-50%, -50%);
}

.location-disclaimer {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .location-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .location-plot {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .location-card {
    grid-template-columns: 1fr;
  }

  .location-coordinates {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .location-plot {
    grid-column: auto;
  }
}

.masonry-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.masonry-grid::-webkit-scrollbar {
  display: none;
}

.masonry-item {
  height: 240px;
  flex: 0 0 auto;
  cursor: default !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.masonry-item:hover {
  transform: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.masonry-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: default !important;
}

.masonry-item:hover img {
  transform: none !important;
}

/* Breadcrumb & Navigation Bar Styles */
.detail-nav-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap !important;
  max-width: 100%;
}

.breadcrumb-link,
.breadcrumb-link-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.breadcrumb-separator {
  flex-shrink: 0 !important;
  opacity: 0.4;
}

.breadcrumb-current {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 220px;
  flex-shrink: 1 !important;
  color: var(--accent, #d4c4a8);
}

.breadcrumb-link:hover,
.breadcrumb-link-btn:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.glass-btn-prominent {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass-btn-prominent:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .detail-nav-bar {
    padding: 0.65rem 1rem !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }
  .breadcrumb-separator.hide-mobile,
  .breadcrumb-current {
    display: none !important;
  }
  .breadcrumb-trail {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .detail-actions {
    flex-shrink: 0;
  }
  .glass-btn-prominent {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
}

/* Unified Detail View Container Widths & Compact Spacing */
#detail-view {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

#detail-view .detail-nav-bar,
#detail-view .hero-section,
#detail-view .detail-content {
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#detail-view .detail-content {
  padding: 3rem 3rem 1.2rem 3rem !important;
  margin-bottom: 0 !important;
}

.scroll-hint-container {
  margin-top: 0.6rem !important;
  margin-bottom: 0 !important;
}

/* Smooth Page View Transitions */
#gallery-view,
#detail-view {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#gallery-view.active,
#detail-view.active {
  opacity: 1;
  transform: translateY(0);
}

/* Site Global Footer */
.site-global-footer {
	width: 100%;
	padding: 1.2rem 1.5rem 1.8rem 1.5rem !important;
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	margin-top: 0.5rem !important;
	box-sizing: border-box;
	z-index: 10;
	position: relative;
}

.site-global-footer p {
	margin: 0;
}

.lightbox[hidden] {
	display: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	opacity: 0;
	transition: opacity 0.28s ease, background-color 0.28s ease, backdrop-filter 0.28s ease;
}

.lightbox.show {
	opacity: 1;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
	max-width: min(92vw, 1500px);
	max-height: 86vh;
	border-radius: 10px;
	object-fit: contain;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition: opacity 0.24s ease 0.04s, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

.lightbox.show.image-ready .lightbox-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.close-lightbox {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	z-index: 1;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	font-size: 2rem;
	line-height: 1;
	opacity: 0;
	transform: scale(0.86);
	transition: opacity 0.2s ease 0.12s, transform 0.24s ease 0.12s, background-color 0.2s ease;
}

.lightbox.show .close-lightbox {
	opacity: 1;
	transform: scale(1);
}

.close-lightbox:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Interaction, accessibility, and responsive refinements */
html {
	color-scheme: dark;
	scroll-behavior: smooth;
}

body.modal-open {
	overflow: hidden;
	padding-right: var(--scrollbar-compensation, 0px);
}

.header-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.title-line-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

:where(a, button, [role="button"], [tabindex]):focus-visible {
	outline: 2px solid rgba(119, 190, 255, 0.95);
	outline-offset: 4px;
}

.lang-btn,
.social-btn,
.filter-list li {
	min-height: 44px;
}

.social-btn {
	display: inline-flex;
	align-items: center;
}

.nav-card:focus-visible,
.analog-card:focus-visible {
	border-color: rgba(119, 190, 255, 0.8);
	box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.14), 0 20px 55px rgba(0, 0, 0, 0.35);
}

.nav-card:focus-visible .nav-card-arrow,
.analog-card:focus-visible .nav-card-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

.filter-list li {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	margin: -0.45rem -0.25rem;
	border-radius: 999px;
}

.filter-list li.active {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.home-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0.74);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.home-modal.is-open {
	opacity: 1;
}

.home-modal-content {
	position: relative;
	width: min(620px, 100%);
	max-height: min(78vh, 720px);
	overflow: auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: rgba(18, 18, 28, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
	transform: translateY(18px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-modal.is-open .home-modal-content {
	transform: translateY(0) scale(1);
}

.close-modal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.6rem;
	line-height: 1;
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.2s ease, opacity 0.2s ease;
}

.close-modal:hover {
	background: rgba(255, 255, 255, 0.14);
}

.modal-title {
	padding-right: 3rem;
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.modal-body {
	color: #b7b7bd;
	font-weight: 300;
	line-height: 1.85;
}

.modal-body p + p {
	margin-top: 1rem;
}

@media (hover: none) {
	.nav-card-arrow,
	.gallery-item-overlay {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	.hub-container {
		padding-right: max(1rem, env(safe-area-inset-right));
		padding-left: max(1rem, env(safe-area-inset-left));
	}

	.gallery-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1rem;
	}

	.subpage-header {
		margin-bottom: 2.25rem;
	}

	.header-logo > span {
		display: none;
	}

	.home-modal-content {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	#gallery-view,
	#detail-view {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.main-header,
	.nav-card,
	.glass-panel,
	.home-modal-content {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background-color: #111118;
	}
}

/* Share composer: desktop split view with a compact mobile flow */
.share-popup-modal {
	display: flex;
	inset: 0;
	width: auto;
	height: auto;
	padding: clamp(1rem, 3vw, 2rem);
	background: rgba(2, 3, 8, 0.76);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.share-popup-modal.show {
	opacity: 1;
	visibility: visible;
}

.share-popup-content.glass-panel {
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-width: 920px;
	max-height: min(760px, calc(100dvh - 3rem));
	padding: 0;
	margin: 0;
	overflow: hidden;
	background: rgba(12, 14, 22, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 26px;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.66);
	transform: translateY(22px) scale(0.985);
	opacity: 0;
	transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.share-popup-modal.show .share-popup-content {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.share-modal-header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.5rem 1.75rem 1.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.share-modal-eyebrow {
	margin-bottom: 0.35rem;
	color: #9cafff;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.share-modal-title {
	margin: 0;
	color: var(--text-light);
	font-size: 1.35rem;
	font-weight: 550;
	letter-spacing: 0.06em;
}

.share-modal-desc {
	margin-top: 0.4rem;
	color: rgba(255, 255, 255, 0.46);
	font-size: 0.8rem;
	line-height: 1.5;
}

.share-close-btn {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -0.25rem -0.25rem 0 0;
	color: rgba(255, 255, 255, 0.66);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	font-size: 1.55rem;
	line-height: 1;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.share-close-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	transform: rotate(4deg);
}

.share-layout {
	display: grid;
	grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1.1fr);
	min-height: 0;
	overflow: hidden;
}

.share-preview-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.25rem 1.5rem 1.5rem;
	overflow: auto;
	background: radial-gradient(circle at 50% 34%, rgba(67, 79, 158, 0.18), transparent 54%), rgba(0, 0, 0, 0.16);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.share-preview-toolbar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
	color: rgba(255, 255, 255, 0.38);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.share-preview-container {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0.5rem;
}

.share-card-preview {
	width: 100%;
	max-width: 260px;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-card-preview:hover {
	transform: translateY(-3px) scale(1.01);
}

.share-controls-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.35rem;
	min-width: 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	overflow: auto;
}

.share-control-section {
	display: grid;
	gap: 0.65rem;
}

.share-control-label {
	color: rgba(255, 255, 255, 0.46);
	font-size: 0.67rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.share-controls-column .glass-pill-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	padding: 5px;
	border-radius: 14px;
}

.share-controls-column .glass-pill-btn {
	min-height: 42px;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
}

.share-link-preview {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.75rem 0.85rem;
	color: rgba(255, 255, 255, 0.48);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.68rem;
}

.share-link-preview svg {
	flex: 0 0 auto;
}

.share-link-preview span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.share-action-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.share-action-btn.glass-btn {
	min-height: 48px;
	padding: 0.8rem 1rem;
}

.share-action-btn:disabled {
	cursor: wait;
	opacity: 0.65;
	transform: none;
}

.share-privacy-note {
	color: rgba(255, 255, 255, 0.34);
	font-size: 0.68rem;
	line-height: 1.55;
}

@media (max-width: 720px) {
	.share-popup-modal {
		align-items: flex-start;
		padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
		overflow-y: auto;
	}

	.share-popup-content.glass-panel {
		width: 100%;
		max-height: none;
		border-radius: 20px;
		overflow: hidden;
	}

	.share-modal-header {
		padding: 1.2rem 1.2rem 1rem;
	}

	.share-layout {
		display: flex;
		flex-direction: column;
		overflow: visible;
	}

	.share-preview-column {
		padding: 1rem 1rem 1.25rem;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.share-card-preview {
		max-width: 220px;
	}

	.share-controls-column {
		gap: 1.15rem;
		padding: 1.25rem;
		overflow: visible;
	}
}

@media (max-width: 420px) {
	.share-action-buttons {
		grid-template-columns: 1fr;
	}

	.share-modal-desc {
		display: none;
	}
}
