.ah-tabs {
	margin: 6px 0 6px 0;
}

.ah-tabs__nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin-bottom: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ah-tabs__nav::-webkit-scrollbar {
	display: none;
}

.ah-tabs__btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.ah-tabs__btn {
	background: rgba(0,0,0,0.06);
	border: none;
	border-radius: 0;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	opacity: 0.85;
	transition: background 0.15s ease, color 0.15s ease;
}

.ah-tabs__btn:hover {
	opacity: 1;
}

.ah-tabs__btn.is-active {
	background: var(--ah-tabs-accent, #111111);
	color: #fff;
	opacity: 1;
}

.ah-tabs__panel {
	display: none;
}

.ah-tabs__panel.is-active {
	display: block;
}

.ah-tabs__empty {
	opacity: 0.6;
	font-style: italic;
}

/* Latest Posts tab uses .ah-posts-list classes (shared with posts-list.css) */

/* Grid tabs (Gallery / BTS / Selfies) */
.ah-tabs__grid {
	display: grid;
	grid-template-columns: repeat(var(--ah-tabs-cols, 3), 1fr);
	gap: 6px;
}

.ah-tabs__cell-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	display: block;
	text-decoration: none;
	color: inherit;
}

.ah-tabs__cell-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ah-tabs__cell-media--embed {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 30px;
	text-decoration: none;
	aspect-ratio: 1 / 1;
}

.ah-tabs__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 28px;
	color: #fff;
	text-shadow: 0 0 6px rgba(0,0,0,0.7);
	pointer-events: none;
}

.ah-tabs__heart-svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	vertical-align: middle;
}

.ah-tabs__like-btn.is-liked {
	color: #e0245e;
}

.ah-tabs__like-btn.is-liked .ah-tabs__heart-svg {
	fill: currentColor;
	stroke: currentColor;
}

.ah-tabs__heart {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 60px;
	height: 60px;
	color: #fff;
	filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
	pointer-events: none;
	opacity: 0;
}

.ah-tabs__heart .ah-tabs__heart-svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: currentColor;
}

.ah-tabs__heart.is-animating {
	animation: ah-tabs-heart-pop 0.7s ease;
}

@keyframes ah-tabs-heart-pop {
	0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
	30%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
	60%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.ah-tabs__social {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 2px;
	font-size: 12px;
}

.ah-tabs__reactions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.ah-tabs__reaction-control {
	position: relative;
}

.ah-tabs__reaction-main,
.ah-tabs__reaction-summary,
.ah-tabs__reaction-option {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	box-shadow: none;
	margin: 0;
	cursor: pointer;
}

.ah-tabs__reaction-main {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 4px;
	font-size: 12px;
	opacity: 0.75;
}

.ah-tabs__reaction-main.is-reacted {
	font-weight: 700;
	opacity: 1;
}

.ah-tabs__reactions[data-selected-reaction="like"] .ah-tabs__reaction-main { color: #1877f2; }
.ah-tabs__reactions[data-selected-reaction="love"] .ah-tabs__reaction-main { color: #e0245e; }
.ah-tabs__reactions[data-selected-reaction="haha"] .ah-tabs__reaction-main,
.ah-tabs__reactions[data-selected-reaction="wow"] .ah-tabs__reaction-main,
.ah-tabs__reactions[data-selected-reaction="sad"] .ah-tabs__reaction-main { color: #f7b125; }
.ah-tabs__reactions[data-selected-reaction="angry"] .ah-tabs__reaction-main { color: #e9710f; }

.ah-tabs__reaction-main-emoji {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
	font-size: 18px !important;
	line-height: 1;
	overflow: visible;
}

.ah-tabs__reaction-picker {
	position: absolute;
	left: 0;
	bottom: calc(100% + 7px);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 5px 7px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.22);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(5px);
	transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
	white-space: nowrap;
}

.ah-tabs__reaction-picker::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 10px;
}

.ah-tabs__reaction-control.is-open .ah-tabs__reaction-picker {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

@media (hover: hover) {
	.ah-tabs__reaction-control:hover .ah-tabs__reaction-picker {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
}

.ah-tabs__reaction-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 2px;
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
	font-size: 26px !important;
	line-height: 1;
	overflow: visible;
	transition: transform 0.12s ease;
}

.ah-tabs__reaction-option:hover,
.ah-tabs__reaction-option:focus,
.ah-tabs__reaction-option.is-selected {
	transform: scale(1.25);
}

.ah-tabs__reaction-summary {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 3px;
	font-size: 11px;
	opacity: 0.75;
}

.ah-tabs__reaction-summary-icons {
	display: inline-flex;
	align-items: center;
}

.ah-tabs__reaction-summary-icons span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
	font-size: 15px !important;
	line-height: 1;
}

.ah-tabs__reaction-summary-icons span + span {
	margin-left: -3px;
}

.ah-tabs__reaction-breakdown {
	position: absolute;
	left: 0;
	top: calc(100% + 5px);
	z-index: 30;
	min-width: 130px;
	padding: 7px 9px;
	background: #fff;
	color: #111;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.ah-tabs__reaction-breakdown-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0;
	font-size: 12px;
	white-space: nowrap;
}

.ah-tabs__reaction-breakdown-row > span {
	font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.ah-tabs__reaction-main-emoji img.emoji,
.ah-tabs__reaction-option img.emoji,
.ah-tabs__reaction-summary-icons img.emoji,
.ah-tabs__reaction-breakdown-row img.emoji {
	display: inline-block !important;
	width: 1em !important;
	height: 1em !important;
	min-width: 1em !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	vertical-align: -0.1em !important;
	object-fit: contain !important;
}

.ah-tabs__grid .ah-tabs__reaction-main-label {
	display: none;
}

.ah-posts-list__social {
	margin-top: 8px;
}

.ah-tabs__like-btn,
.ah-tabs__comment-toggle,
.ah-feed__comment-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 4px;
	opacity: 0.75;
}

.ah-tabs__like-btn.is-liked {
	color: #e0245e;
	opacity: 1;
}

.ah-tabs__comments-panel {
	padding: 6px 2px;
	font-size: 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
	margin-top: 4px;
}

.ah-tabs__comments-list {
	max-height: 120px;
	overflow-y: auto;
	margin-bottom: 6px;
}

.ah-tabs__comment {
	margin-bottom: 8px;
	line-height: 1.3;
}

.ah-tabs__comment-main {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.ah-tabs__comment-avatar,
.ah-tabs__commenting-avatar {
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex: 0 0 30px;
}

.ah-tabs__comment-avatar--placeholder {
	display: inline-block;
	background: rgba(0,0,0,0.12);
}

.ah-tabs__comment-body {
	min-width: 0;
	flex: 1;
}

.ah-tabs__comment-author {
	font-weight: 700;
}

.ah-tabs__comment-text-content {
	margin-top: 1px;
	word-break: break-word;
}

.ah-tabs__comment-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	opacity: 0.7;
	margin-top: 2px;
}

.ah-tabs__comment-reply,
.ah-tabs__reply-cancel {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.ah-tabs__comment-children {
	margin: 7px 0 0 38px;
}

.ah-tabs__comment--none {
	opacity: 0.6;
	font-style: italic;
}

.ah-tabs__comment-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ah-tabs__commenting-as {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
}

.ah-tabs__reply-context {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 11px;
	padding: 4px 6px;
	background: rgba(0,0,0,0.05);
}

.ah-tabs__reply-context[hidden] {
	display: none;
}

.ah-tabs__comment-name,
.ah-tabs__comment-text {
	font-size: 12px;
	padding: 4px 6px;
	width: 100%;
	box-sizing: border-box;
}

.ah-tabs__comment-text {
	resize: vertical;
	min-height: 40px;
}

.ah-tabs__comment-submit {
	align-self: flex-end;
	font-size: 12px;
	padding: 4px 10px;
	cursor: pointer;
}

.ah-tabs__comment-status {
	font-size: 11px;
	opacity: 0.8;
}

@media (max-width: 640px) {
	.ah-tabs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Lightbox */
.ah-tabs__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ah-tabs__lightbox:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ah-tabs__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.85);
}

.ah-tabs__lightbox-inner {
	position: relative;
	background: #fff;
	color: #111;
	max-width: 92vw;
	max-height: 92vh;
	width: 480px;
	overflow-y: auto;
	padding: 16px;
	box-sizing: border-box;
}

.ah-tabs__lightbox-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #111;
	z-index: 2;
}

.ah-tabs__lightbox-fullscreen {
	position: absolute;
	top: 6px;
	right: 44px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
	z-index: 2;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-inner {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	padding: 0;
	overflow: hidden;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media {
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #000;
	margin-bottom: 0;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media img,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media video {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-social,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-comments {
	display: none;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-close,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-fullscreen {
	background: rgba(0,0,0,0.55);
	color: #fff;
}

.ah-tabs__lightbox-media {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
	margin-bottom: 10px;
}

.ah-tabs__lightbox-media img,
.ah-tabs__lightbox-media video {
	max-width: 100%;
	max-height: 70vh;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

.ah-tabs__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(0,0,0,0.15);
	border-top-color: #111;
	border-radius: 50%;
	animation: ah-tabs-spin 0.8s linear infinite;
}

@keyframes ah-tabs-spin {
	to { transform: rotate(360deg); }
}

.ah-tabs__lightbox-social {
	margin-bottom: 10px;
}

.ah-tabs__lightbox-social .ah-tabs__like-btn {
	font-size: 15px;
}

.ah-tabs__lightbox-comments .ah-tabs__comments-list {
	max-height: 180px;
}

/* Feed tab */
.ah-feed {
	position: relative;
}

.ah-feed__new-btn {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ah-tabs-accent, #111111);
	color: #fff;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	margin-bottom: 12px;
}

.ah-feed__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ah-feed__post {
	border: 1px solid rgba(0,0,0,0.1);
	padding: 12px;
}

.ah-feed__author {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 9px;
}

.ah-feed__author-avatar {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex: 0 0 40px;
}

.ah-feed__author-info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ah-feed__author-name {
	font-size: 14px;
}

.ah-feed__author-time {
	font-size: 11px;
	opacity: 0.65;
	margin-top: 2px;
}

.ah-feed__text {
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 8px;
	white-space: pre-wrap;
}

.ah-feed__media {
	display: block;
	max-height: 360px;
	aspect-ratio: auto;
	margin-bottom: 8px;
	position: relative;
	overflow: hidden;
}

.ah-feed__media img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	display: block;
}

.ah-feed__video-placeholder {
	display: block;
	width: 100%;
	height: 200px;
	background: #111;
}

.ah-feed__meta {
	font-size: 11px;
	opacity: 0.55;
	margin-bottom: 6px;
}

.ah-feed__owner-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 6px;
}

.ah-feed__edit-btn,
.ah-feed__delete-btn {
	border: none;
	background: none;
	padding: 0;
	font-size: 11px;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	opacity: 0.7;
}

/* Compose modal */
.ah-feed__compose-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
}

.ah-feed__compose-modal:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ah-feed__compose-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.75);
}

.ah-feed__compose-inner {
	position: relative;
	background: #fff;
	color: #111;
	width: 480px;
	max-width: 92vw;
	max-height: 92vh;
	overflow-y: auto;
	padding: 16px;
	box-sizing: border-box;
}

.ah-feed__compose-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #111;
}

.ah-feed__compose-text {
	width: 100%;
	min-height: 100px;
	box-sizing: border-box;
	font-size: 14px;
	padding: 8px;
	margin-top: 20px;
	resize: vertical;
}

.ah-feed__compose-preview img {
	width: 100%;
	max-height: 240px;
	object-fit: cover;
	display: block;
	margin-top: 8px;
}

.ah-feed__compose-video-label {
	margin-top: 8px;
	padding: 10px;
	background: #f4f4f4;
	font-size: 12px;
	text-align: center;
}

.ah-feed__compose-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.ah-feed__compose-attach,
.ah-feed__compose-remove-attach {
	font-size: 12px;
	padding: 6px 10px;
	cursor: pointer;
	background: rgba(0,0,0,0.06);
	border: none;
}

.ah-feed__compose-post {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	cursor: pointer;
	background: var(--ah-tabs-accent, #111111);
	color: #fff;
	border: none;
}

.ah-feed__compose-status {
	font-size: 12px;
	margin-top: 6px;
	opacity: 0.8;
}
