/* ==========================================================
   3RABTOON CORE FRONTEND
========================================================== */

:root {
	--rabtoon-core-navy: #001A46;
	--rabtoon-core-navy-2: #082B5A;
	--rabtoon-core-orange: #FF7E33;
	--rabtoon-core-orange-hover: #F06F2B;
	--rabtoon-core-text: #101828;
	--rabtoon-core-muted: #667085;
	--rabtoon-core-soft: #F6F8FB;
	--rabtoon-core-border: #E7EBF1;
	--rabtoon-core-white: #FFFFFF;
	--rabtoon-core-shadow: 0 18px 50px rgba(0, 26, 70, 0.09);
}

.rabtoon-story-section,
.rabtoon-single-story,
.rabtoon-story-section *,
.rabtoon-single-story * {
	box-sizing: border-box;
}

/* ==========================================================
   STORY CARD SECTIONS
========================================================== */

.rabtoon-story-section {
	width: 100%;
	margin: 40px 0;
}

.rabtoon-story-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 24px;
}

.rabtoon-story-section__title-wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1 1 auto;
	min-width: 0;
}

.rabtoon-story-section__title {
	flex: 0 0 auto;
	margin: 0;
	color: var(--rabtoon-core-text);
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.rabtoon-story-section__line {
	height: 1px;
	flex: 1 1 auto;
	background: #D9DEE6;
}

.rabtoon-story-section__view-all {
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--rabtoon-core-orange);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .18s ease, background .18s ease;
}

.rabtoon-story-section__view-all:hover {
	background: var(--rabtoon-core-orange-hover);
	color: #fff;
	transform: translateY(-1px);
}

.rabtoon-story-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px;
}

.rabtoon-story-card {
	min-width: 0;
	background: transparent;
}

.rabtoon-story-card__image-link {
	display: block;
	text-decoration: none;
}

.rabtoon-story-card__image-wrap {
	position: relative;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	border-radius: 14px;
	background: #EEF1F5;
	box-shadow: 0 0 0 1px rgba(0, 26, 70, .05);
}

.rabtoon-story-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.rabtoon-story-card:hover .rabtoon-story-card__image {
	transform: scale(1.025);
}

.rabtoon-story-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rabtoon-core-muted);
	font-size: 13px;
	font-weight: 700;
}

.rabtoon-story-card__badge {
	position: absolute;
	top: 11px;
	inset-inline-start: 11px;
	min-height: 27px;
	padding: 0 9px;
	border-radius: 7px;
	background: var(--rabtoon-core-orange);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	box-shadow: 0 5px 16px rgba(255, 126, 51, .22);
}

.rabtoon-story-card__content {
	padding: 11px 1px 0;
}

.rabtoon-story-card__genre {
	margin-bottom: 4px;
	color: var(--rabtoon-core-orange);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.rabtoon-story-card__title {
	margin: 0;
	color: var(--rabtoon-core-text);
	font-size: 16px;
	line-height: 1.35;
	font-weight: 800;
}

.rabtoon-story-card__title a {
	color: inherit;
	text-decoration: none;
}

.rabtoon-story-card__title a:hover {
	color: var(--rabtoon-core-orange);
}

.rabtoon-story-card__synopsis {
	display: -webkit-box;
	margin: 7px 0 0;
	overflow: hidden;
	color: var(--rabtoon-core-muted);
	font-size: 13px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rabtoon-story-card__footer {
	margin-top: 7px;
}

.rabtoon-story-card__views {
	color: #8B929E;
	font-size: 13px;
	font-weight: 600;
}

.rabtoon-story-empty,
.rabtoon-empty-state {
	padding: 22px;
	border: 1px dashed var(--rabtoon-core-border);
	border-radius: 14px;
	background: var(--rabtoon-core-soft);
	color: var(--rabtoon-core-muted);
	text-align: center;
	font-weight: 600;
}

/* ==========================================================
   SINGLE STORY
========================================================== */

.rabtoon-single-story {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 38px 0 70px;
	color: var(--rabtoon-core-text);
}

.rabtoon-story-hero {
	display: grid;
	grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.rabtoon-story-cover {
	position: sticky;
	top: 175px;
}

.rabtoon-story-cover__image,
.rabtoon-story-cover__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	border-radius: 18px;
	object-fit: cover;
	background: #EEF1F5;
	box-shadow: var(--rabtoon-core-shadow);
}

.rabtoon-story-cover__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rabtoon-core-muted);
	font-weight: 700;
}

.rabtoon-story-summary {
	min-width: 0;
	padding-top: 8px;
}

.rabtoon-story-kickers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.rabtoon-chip {
	min-height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255, 126, 51, .10);
	color: var(--rabtoon-core-orange);
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 12px;
	font-weight: 800;
}

.rabtoon-chip:hover {
	color: var(--rabtoon-core-orange-hover);
}

.rabtoon-chip--soft {
	background: var(--rabtoon-core-soft);
	color: var(--rabtoon-core-navy);
}

.rabtoon-story-title {
	margin: 0 0 11px;
	color: var(--rabtoon-core-text);
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: -0.045em;
}

.rabtoon-story-creator {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin-bottom: 20px;
	color: var(--rabtoon-core-muted);
	font-size: 14px;
}

.rabtoon-story-creator strong {
	color: var(--rabtoon-core-navy);
}

.rabtoon-story-synopsis {
	max-width: 760px;
	margin: 0 0 25px;
	color: #465467;
	font-size: 17px;
	line-height: 1.75;
}

.rabtoon-story-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 690px;
	margin-bottom: 24px;
	border-block: 1px solid var(--rabtoon-core-border);
}

.rabtoon-story-meta > div {
	padding: 16px 10px 16px 0;
}

.rabtoon-story-meta strong {
	display: block;
	color: var(--rabtoon-core-navy);
	font-size: 20px;
	line-height: 1.1;
}

.rabtoon-story-meta span {
	display: block;
	margin-top: 4px;
	color: var(--rabtoon-core-muted);
	font-size: 12px;
	font-weight: 700;
}

.rabtoon-story-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rabtoon-action-button {
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rabtoon-core-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.rabtoon-action-button:hover {
	border-color: rgba(0, 26, 70, .18);
	transform: translateY(-1px);
}

.rabtoon-action-button.is-active {
	border-color: var(--rabtoon-core-orange);
	background: var(--rabtoon-core-orange);
	color: #fff;
}

.rabtoon-action-button:disabled {
	opacity: .55;
	cursor: wait;
}

.rabtoon-action-button__icon {
	font-size: 18px;
	line-height: 1;
}

.rabtoon-story-details-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 18px;
	color: var(--rabtoon-core-muted);
	font-size: 13px;
}

.rabtoon-inline-notice {
	margin-top: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #EEF5FF;
	color: var(--rabtoon-core-navy);
	font-size: 13px;
	font-weight: 700;
}

.rabtoon-inline-notice[data-type="error"] {
	background: #FFF1F0;
	color: #B42318;
}

.rabtoon-inline-notice[data-type="success"] {
	background: #ECFDF3;
	color: #027A48;
}

/* ==========================================================
   PANELS
========================================================== */

.rabtoon-story-panel {
	margin-top: 54px;
	padding-top: 34px;
	border-top: 1px solid var(--rabtoon-core-border);
}

.rabtoon-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.rabtoon-section-heading h2 {
	margin: 0;
	color: var(--rabtoon-core-text);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 850;
	letter-spacing: -0.025em;
}

.rabtoon-section-heading > span {
	min-width: 30px;
	height: 30px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--rabtoon-core-soft);
	color: var(--rabtoon-core-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
}

.rabtoon-story-description {
	max-width: 860px;
	color: #465467;
	font-size: 16px;
	line-height: 1.85;
}

.rabtoon-story-description p:last-child {
	margin-bottom: 0;
}

/* ==========================================================
   EPISODES
========================================================== */

.rabtoon-episode-list {
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}

.rabtoon-episode-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	min-height: 92px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--rabtoon-core-border);
	color: inherit;
	text-decoration: none;
	transition: background .18s ease;
}

.rabtoon-episode-row:last-child {
	border-bottom: 0;
}

.rabtoon-episode-row:hover {
	background: #FAFBFC;
	color: inherit;
}

.rabtoon-episode-row__thumb {
	width: 72px;
	aspect-ratio: 4 / 3;
	border-radius: 9px;
	overflow: hidden;
	background: var(--rabtoon-core-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rabtoon-core-navy);
	font-weight: 900;
}

.rabtoon-episode-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rabtoon-episode-row__content {
	min-width: 0;
}

.rabtoon-episode-row__content strong,
.rabtoon-episode-row__content span {
	display: block;
}

.rabtoon-episode-row__content strong {
	color: var(--rabtoon-core-text);
	font-size: 15px;
}

.rabtoon-episode-row__content span {
	margin-top: 4px;
	color: var(--rabtoon-core-muted);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rabtoon-episode-row time {
	color: var(--rabtoon-core-muted);
	font-size: 12px;
	white-space: nowrap;
}

/* ==========================================================
   COMMENTS
========================================================== */

.rabtoon-comment-form {
	margin-bottom: 30px;
	padding: 20px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 16px;
	background: #fff;
}

.rabtoon-comment-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.rabtoon-comment-form input,
.rabtoon-comment-form textarea {
	width: 100%;
	margin: 0;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 11px;
	background: var(--rabtoon-core-soft);
	color: var(--rabtoon-core-text);
	font: inherit;
	font-size: 14px;
	outline: none;
	box-shadow: none;
}

.rabtoon-comment-form input {
	height: 46px;
	padding: 0 13px;
}

.rabtoon-comment-form textarea {
	min-height: 116px;
	padding: 12px 13px;
	resize: vertical;
}

.rabtoon-comment-form input:focus,
.rabtoon-comment-form textarea:focus {
	border-color: rgba(255, 126, 51, .55);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 126, 51, .08);
}

.rabtoon-comment-form__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
}

.rabtoon-comment-form__footer button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--rabtoon-core-navy);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.rabtoon-comment-form__footer button:hover {
	background: var(--rabtoon-core-navy-2);
}

.rabtoon-comment-form__footer button:disabled {
	opacity: .6;
	cursor: wait;
}

.rabtoon-comment-form__message {
	color: var(--rabtoon-core-muted);
	font-size: 13px;
	font-weight: 700;
}

.rabtoon-comment-form__message[data-type="error"] {
	color: #B42318;
}

.rabtoon-comment-form__message[data-type="success"] {
	color: #027A48;
}

.rabtoon-comments-list {
	display: grid;
	gap: 18px;
}

.rabtoon-comment {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
}

.rabtoon-comment__avatar {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.rabtoon-comment__body {
	min-width: 0;
	padding: 13px 15px;
	border-radius: 14px;
	background: var(--rabtoon-core-soft);
}

.rabtoon-comment__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 12px;
	margin-bottom: 7px;
}

.rabtoon-comment__head strong {
	color: var(--rabtoon-core-text);
	font-size: 13px;
}

.rabtoon-comment__head time {
	color: #98A2B3;
	font-size: 11px;
}

.rabtoon-comment__text {
	color: #475467;
	font-size: 14px;
	line-height: 1.65;
}

.rabtoon-comment__text p {
	margin: 0;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1180px) {
	.rabtoon-story-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.rabtoon-story-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.rabtoon-single-story {
		padding-top: 28px;
	}

	.rabtoon-story-hero {
		grid-template-columns: minmax(210px, 275px) minmax(0, 1fr);
		gap: 30px;
	}

	.rabtoon-story-cover {
		position: static;
	}

	.rabtoon-story-meta {
		grid-template-columns: repeat(2, 1fr);
	}
}


@media (max-width: 820px) {
	.rabtoon-story-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.rabtoon-story-section__header {
		align-items: flex-start;
	}

	.rabtoon-story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.rabtoon-story-section__line {
		display: none;
	}

	.rabtoon-single-story {
		padding: 20px 0 50px;
	}

	.rabtoon-story-hero {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.rabtoon-story-cover {
		width: min(72vw, 330px);
		margin: 0 auto;
	}

	.rabtoon-story-title {
		font-size: clamp(34px, 10vw, 48px);
	}

	.rabtoon-story-synopsis {
		font-size: 15px;
	}

	.rabtoon-story-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rabtoon-action-button {
		width: 100%;
		padding: 0 10px;
	}

	.rabtoon-episode-row {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.rabtoon-episode-row__thumb {
		width: 60px;
	}

	.rabtoon-episode-row time {
		display: none;
	}

	.rabtoon-comment-form__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.rabtoon-story-section {
		margin: 28px 0;
	}

	.rabtoon-story-section__header {
		gap: 12px;
		margin-bottom: 18px;
	}

	.rabtoon-story-section__view-all {
		min-height: 42px;
		padding: 0 15px;
		font-size: 12px;
	}

	.rabtoon-story-grid {
		gap: 13px;
	}

	.rabtoon-story-card__image-wrap {
		border-radius: 11px;
	}

	.rabtoon-story-card__badge {
		top: 8px;
		inset-inline-start: 8px;
	}

	.rabtoon-story-card__title {
		font-size: 14px;
	}

	.rabtoon-story-card__synopsis {
		display: none;
	}

	.rabtoon-story-meta {
		grid-template-columns: repeat(2, 1fr);
	}

	.rabtoon-story-actions {
		grid-template-columns: 1fr;
	}

	.rabtoon-comment-form {
		padding: 14px;
	}

	.rabtoon-comment-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.rabtoon-comment-form__footer button {
		width: 100%;
	}
}

/* ==========================================================
   RTL READY
========================================================== */

html[dir="rtl"] .rabtoon-story-section,
html[dir="rtl"] .rabtoon-single-story {
	direction: rtl;
}

html[dir="rtl"] .rabtoon-story-card__content,
html[dir="rtl"] .rabtoon-story-summary,
html[dir="rtl"] .rabtoon-story-description,
html[dir="rtl"] .rabtoon-comment__body {
	text-align: right;
}

/* ==========================================================
   v1.3 CARD REFINEMENTS — WEBTOON-STYLE DISCOVERY
========================================================== */

.rabtoon-story-card__image-wrap {
	aspect-ratio: 5 / 7;
	border-radius: 12px;
}

.rabtoon-story-card__badge {
	min-height: 25px;
	padding: 0 8px;
	border-radius: 5px;
	box-shadow: none;
	font-size: 10px;
	font-weight: 900;
}

.rabtoon-story-card__badge--new {
	background: #00B86B;
	color: #fff;
}

.rabtoon-story-card__badge--completed {
	background: var(--rabtoon-core-navy);
	color: #fff;
}

.rabtoon-story-card__content {
	padding-top: 9px;
}

.rabtoon-story-card__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.6em;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 800;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rabtoon-story-card__footer {
	margin-top: 4px;
}

.rabtoon-story-card__views {
	color: #8B8F98;
	font-size: 12px;
	font-weight: 500;
}

@media (min-width: 1281px) {
	.rabtoon-story-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.rabtoon-story-card__title {
		min-height: 2.55em;
		font-size: 13px;
	}

	.rabtoon-story-card__views {
		font-size: 11px;
	}
}

/* v1.3 episode list details */
.rabtoon-episode-row__label { min-height: 16px; margin-bottom: 2px; }
.rabtoon-episode-row__label em {
	display: inline-flex;
	min-height: 18px;
	padding: 0 6px;
	border-radius: 4px;
	background: #00B86B;
	color: #fff;
	align-items: center;
	font-size: 9px;
	font-style: normal;
	font-weight: 900;
	text-transform: uppercase;
}
.rabtoon-episode-row__content small {
	display: block;
	margin-top: 4px;
	color: #98A2B3;
	font-size: 11px;
	font-weight: 600;
}

/* v1.4 story reading CTAs */
.rabtoon-story-reading-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 12px;
}

.rabtoon-story-read-button {
	min-height: 46px;
	padding: 0 17px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rabtoon-core-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.rabtoon-story-read-button:hover {
	border-color: rgba(0,26,70,.2);
	color: var(--rabtoon-core-navy);
	transform: translateY(-1px);
}

.rabtoon-story-read-button--primary {
	border-color: var(--rabtoon-core-orange);
	background: var(--rabtoon-core-orange);
	color: #fff;
}

.rabtoon-story-read-button--primary:hover {
	border-color: var(--rabtoon-core-orange-hover);
	background: var(--rabtoon-core-orange-hover);
	color: #fff;
}

@media (max-width: 520px) {
	.rabtoon-story-reading-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.rabtoon-story-read-button { width: 100%; padding-inline: 10px; }
}

/* Creator profile link (v1.6) */
.rabtoon-story-creator strong a {
	color: var(--rabtoon-core-navy);
	text-decoration: none;
	font-weight: inherit;
}
.rabtoon-story-creator strong a:hover {
	color: var(--rabtoon-core-orange);
}

/* ==========================================================
   ENGAGEMENT ACTION POLISH
========================================================== */

.rabtoon-action-button,
.rabtoon-action-button:hover,
.rabtoon-action-button:focus,
.rabtoon-action-button:active,
.rabtoon-action-button:visited,
.rabtoon-story-read-button,
.rabtoon-story-read-button:hover,
.rabtoon-story-read-button:focus,
.rabtoon-story-read-button:active,
.rabtoon-story-section__view-all,
.rabtoon-story-section__view-all:hover,
.rabtoon-story-section__view-all:focus,
.rabtoon-story-section__view-all:active {
	text-decoration: none !important;
}

.rabtoon-story-actions {
	align-items: center;
}

.rabtoon-follow-action {
	flex: 0 0 auto;
}

.rabtoon-social-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, auto));
	gap: 10px;
	min-width: 0;
}

.rabtoon-social-action {
	min-width: 0;
	text-decoration: none !important;
}

.rabtoon-social-action small {
	margin-inline-start: 2px;
	font-size: 10px;
	font-weight: 850;
	opacity: .78;
}

.rabtoon-action-button__icon--svg {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.rabtoon-action-button__icon--svg svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rabtoon-action-button.is-active .rabtoon-action-button__icon--svg svg {
	stroke-width: 2.15;
}

@media (max-width: 720px) {
	.rabtoon-story-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.rabtoon-follow-action {
		width: 100%;
	}

	.rabtoon-social-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.rabtoon-social-action {
		width: 100%;
		min-height: 44px;
		padding-inline: 8px;
		gap: 5px;
		font-size: 12px;
		white-space: nowrap;
	}
}

@media (max-width: 390px) {
	.rabtoon-social-actions { gap: 6px; }
	.rabtoon-social-action {
		padding-inline: 6px;
		font-size: 11px;
	}
	.rabtoon-social-action small { font-size: 9px; }
	.rabtoon-action-button__icon--svg { width: 17px; height: 17px; flex-basis: 17px; }
}

/* v1.8 — optional creator content notices on the public story page. */
.rabtoon-story-content-notice {
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 126, 51, .22);
	border-radius: 12px;
	background: #fff8f3;
}
.rabtoon-story-content-notice > strong {
	display: block;
	margin-bottom: 8px;
	color: var(--rabtoon-core-navy);
	font-size: 12px;
	font-weight: 900;
}
.rabtoon-story-content-notice > div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rabtoon-story-content-notice span {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 0 9px;
	border-radius: 999px;
	background: #fff;
	color: #93400e;
	font-size: 11px;
	font-weight: 800;
}

/* ==========================================================
   v1.11 Reader + comments experience
========================================================== */
.rabtoon-story-banner {
	width: 100%;
	margin: 0 0 32px;
	aspect-ratio: 3 / 1;
	max-height: 390px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 20px;
	overflow: hidden;
	background: var(--rabtoon-core-soft);
	box-shadow: 0 12px 34px rgba(0,26,70,.06);
}

.rabtoon-story-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rabtoon-story-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 18px;
}

.rabtoon-story-facts > span {
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 11px;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	color: var(--rabtoon-core-muted);
	font-size: 10px;
	font-weight: 700;
}

.rabtoon-story-facts strong {
	color: var(--rabtoon-core-navy);
	font-size: 12px;
	font-weight: 850;
}

.rabtoon-comment__avatar-wrap {
	width: 44px;
	min-width: 44px;
}

.rabtoon-comment__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 9px;
}

.rabtoon-comment__actions button {
	padding: 0;
	border: 0;
	background: transparent !important;
	color: var(--rabtoon-core-navy) !important;
	font: inherit;
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: none !important;
	text-decoration: none !important;
}

.rabtoon-comment__actions button:hover,
.rabtoon-comment__actions button:focus-visible {
	color: var(--rabtoon-core-orange) !important;
}

.rabtoon-comment__actions > span {
	color: var(--rabtoon-core-muted);
	font-size: 10px;
	font-weight: 700;
}

.rabtoon-reply-form {
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 12px;
	background: #fff;
}

.rabtoon-reply-form[hidden] {
	display: none !important;
}

.rabtoon-reply-form textarea,
.rabtoon-reply-form input {
	width: 100%;
	margin: 0;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 10px;
	background: var(--rabtoon-core-soft);
	color: var(--rabtoon-core-text);
	font: inherit;
	font-size: 13px;
	outline: 0;
	box-shadow: none;
}

.rabtoon-reply-form textarea {
	min-height: 88px;
	padding: 10px 12px;
	resize: vertical;
}

.rabtoon-reply-form input {
	height: 42px;
	padding: 0 12px;
}

.rabtoon-reply-form textarea:focus,
.rabtoon-reply-form input:focus {
	border-color: rgba(255,126,51,.55);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255,126,51,.08);
}

.rabtoon-reply-form__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 9px;
}

.rabtoon-reply-form__footer > div:last-child {
	display: flex;
	gap: 7px;
	margin-inline-start: auto;
}

.rabtoon-reply-form__footer button {
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rabtoon-core-navy);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none !important;
}

.rabtoon-reply-form__footer button[type="submit"] {
	border-color: var(--rabtoon-core-navy);
	background: var(--rabtoon-core-navy);
	color: #fff;
}

.rabtoon-reply-form__footer button:hover,
.rabtoon-reply-form__footer button:focus-visible {
	border-color: var(--rabtoon-core-navy-2);
	background: var(--rabtoon-core-navy-2);
	color: #fff;
}

.rabtoon-comment__replies {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding-inline-start: 18px;
	border-inline-start: 2px solid rgba(255,126,51,.18);
}

.rabtoon-comment--reply {
	grid-template-columns: 36px minmax(0,1fr);
	gap: 9px;
}

.rabtoon-comment--reply .rabtoon-comment__avatar-wrap,
.rabtoon-comment--reply .rabtoon-comment__avatar {
	width: 36px;
	height: 36px;
	min-width: 36px;
}

.rabtoon-comment--reply .rabtoon-comment__body {
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--rabtoon-core-border);
}

@media (max-width: 760px) {
	.rabtoon-story-banner {
		margin-bottom: 22px;
		border-radius: 14px;
	}
	.rabtoon-story-facts { gap: 6px; }
	.rabtoon-story-facts > span { flex: 1 1 calc(33.333% - 6px); min-width: 92px; }
}

@media (max-width: 520px) {
	.rabtoon-comment { grid-template-columns: 36px minmax(0,1fr); gap: 9px; }
	.rabtoon-comment__avatar-wrap,
	.rabtoon-comment__avatar { width: 36px; height: 36px; min-width: 36px; }
	.rabtoon-comment__body { padding: 11px 12px; }
	.rabtoon-comment__replies { padding-inline-start: 10px; }
	.rabtoon-reply-form__footer { align-items: stretch; flex-direction: column; }
	.rabtoon-reply-form__footer > div:last-child { width: 100%; margin-inline-start: 0; }
	.rabtoon-reply-form__footer button { flex: 1 1 0; }
}

/* ==========================================================
   v1.14 Story Ratings
========================================================== */

.rabtoon-story-rating {
	margin: 16px 0 18px;
	padding: 14px 16px;
	border: 1px solid var(--rabtoon-core-border);
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.rabtoon-story-rating__summary {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.rabtoon-story-rating__summary > div:first-child strong {
	display: block;
	margin-bottom: 3px;
	color: var(--rabtoon-core-navy);
	font-size: 14px;
	font-weight: 900;
}

.rabtoon-story-rating__summary > div:first-child span {
	color: var(--rabtoon-core-muted);
	font-size: 11px;
	font-weight: 650;
}

.rabtoon-story-rating__score {
	flex: 0 0 auto;
	text-align: end;
	white-space: nowrap;
}

.rabtoon-story-rating__score b {
	color: var(--rabtoon-core-navy);
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
}

.rabtoon-story-rating__score > span {
	color: var(--rabtoon-core-muted);
	font-size: 12px;
	font-weight: 750;
}

.rabtoon-story-rating__score small {
	display: block;
	margin-top: 4px;
	color: var(--rabtoon-core-muted);
	font-size: 10px;
	font-weight: 700;
}

.rabtoon-story-rating__score small strong {
	color: var(--rabtoon-core-orange);
	font-size: inherit;
}

.rabtoon-story-rating__stars {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.rabtoon-rating-star {
	-webkit-appearance: none;
	appearance: none;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 5px;
	border: 0;
	border-radius: 9px;
	background: transparent !important;
	color: #C9D0DA;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	outline: 0;
	cursor: pointer;
	transition: color .16s ease, background .16s ease, transform .16s ease;
}

.rabtoon-rating-star svg {
	width: 23px;
	height: 23px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: .8;
}

.rabtoon-rating-star:hover,
.rabtoon-rating-star:focus-visible,
.rabtoon-rating-star.is-preview,
.rabtoon-rating-star.is-active {
	background: #FFF5EF !important;
	color: var(--rabtoon-core-orange);
}

.rabtoon-rating-star:hover,
.rabtoon-rating-star:focus-visible {
	transform: translateY(-1px);
}

.rabtoon-rating-star:disabled {
	opacity: .6;
	cursor: wait;
}

.rabtoon-story-rating__notice {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.45;
}

.rabtoon-story-rating__notice[data-type="success"] {
	border-color: #ABEFC6;
	background: #ECFDF3;
	color: #027A48;
}

.rabtoon-story-rating__notice[data-type="error"] {
	border-color: #FECDCA;
	background: #FFF1F0;
	color: #B42318;
}

.rabtoon-story-rating__notice[data-type="info"] {
	border-color: #D6E4FF;
	background: #EEF5FF;
	color: var(--rabtoon-core-navy);
}

.rabtoon-story-rating__notice[hidden] {
	display: none !important;
}

.rabtoon-story-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
}

.rabtoon-story-card__rating {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--rabtoon-core-orange);
	font-size: 11px;
	font-weight: 850;
	line-height: 1;
	white-space: nowrap;
}

.rabtoon-story-card__rating svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: .8;
}

.rabtoon-story-card__rating strong {
	color: var(--rabtoon-core-navy);
	font-size: 11px;
	font-weight: 850;
}

@media (max-width: 700px) {
	.rabtoon-story-rating {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.rabtoon-story-rating__stars {
		width: 100%;
		justify-content: center;
	}

	.rabtoon-rating-star {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 430px) {
	.rabtoon-story-rating__summary {
		align-items: flex-start;
	}

	.rabtoon-story-rating__score b {
		font-size: 19px;
	}

	.rabtoon-rating-star {
		width: 36px;
		height: 36px;
	}

	.rabtoon-story-card__footer {
		gap: 5px;
	}

	.rabtoon-story-card__rating,
	.rabtoon-story-card__rating strong {
		font-size: 10px;
	}
}

html[dir="rtl"] .rabtoon-story-rating__score {
	text-align: start;
}


/* Points / support indicator used by Top Trending story cards. */
.rabtoon-story-card__support{display:inline-flex;align-items:center;gap:4px;color:#ff7e33;font-size:12px;font-weight:800;white-space:nowrap}.rabtoon-story-card__support svg{width:14px;height:14px;fill:currentColor;stroke:none}.rabtoon-story-card__footer{flex-wrap:wrap}

/* ==========================================================
   v1.15.13 — STORY PAGE RESPONSIVE REFINEMENT
   Compact mobile actions, better spacing and RTL/LTR-safe flow.
========================================================== */
@media (max-width: 720px) {
	.rabtoon-single-story {
		width: calc(100% - 28px);
		max-width: 100%;
		margin-inline: auto;
		padding: 18px 0 48px;
	}

	.rabtoon-story-banner {
		margin-bottom: 18px;
		border-radius: 14px;
		aspect-ratio: 2.75 / 1;
	}

	.rabtoon-story-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.rabtoon-story-cover {
		position: static;
		width: min(58vw, 230px);
		aspect-ratio: 5 / 7;
		margin-inline: auto;
		min-height: 0;
	}

	.rabtoon-story-cover__image,
	.rabtoon-story-cover__placeholder {
		width: 100%;
		height: 100% !important;
		aspect-ratio: auto;
		border-radius: 16px;
		object-fit: cover;
	}

	.rabtoon-story-summary {
		padding-top: 0;
		min-width: 0;
		text-align: start;
	}

	.rabtoon-story-kickers {
		gap: 6px;
		margin-bottom: 14px;
	}

	.rabtoon-chip {
		min-height: 28px;
		padding-inline: 9px;
		font-size: 11px;
	}

	.rabtoon-story-title {
		margin-bottom: 9px;
		font-size: clamp(28px, 8.8vw, 40px);
		line-height: 1.06;
		letter-spacing: -0.035em;
		overflow-wrap: anywhere;
	}

	.rabtoon-story-creator {
		margin-bottom: 16px;
		font-size: 13px;
		line-height: 1.45;
	}

	.rabtoon-story-facts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 14px 0 16px;
	}

	.rabtoon-story-facts > span {
		min-width: 0;
		min-height: 52px;
		padding: 8px 10px;
		border-radius: 11px;
		text-align: start;
	}

	.rabtoon-story-facts strong {
		font-size: 11.5px;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	.rabtoon-story-synopsis {
		margin-bottom: 18px;
		font-size: 14px;
		line-height: 1.7;
	}

	.rabtoon-story-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
		margin-bottom: 18px;
	}

	.rabtoon-story-meta > div {
		min-width: 0;
		padding: 13px 8px;
	}

	.rabtoon-story-meta strong {
		font-size: 18px;
	}

	.rabtoon-story-rating {
		margin: 14px 0 16px;
		padding: 14px;
		border-radius: 15px;
		gap: 12px;
	}

	.rabtoon-story-rating__summary {
		width: 100%;
		gap: 12px;
	}

	.rabtoon-story-rating__summary > div:first-child {
		min-width: 0;
	}

	.rabtoon-story-rating__summary > div:first-child span {
		display: block;
		line-height: 1.45;
	}

	.rabtoon-story-rating__stars {
		width: 100%;
		justify-content: space-between;
		gap: 2px;
	}

	.rabtoon-rating-star {
		width: 38px;
		height: 38px;
		padding: 6px;
	}

	.rabtoon-story-reading-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin-bottom: 12px;
	}

	.rabtoon-story-read-button {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding: 9px 12px;
		font-size: 12px;
		line-height: 1.25;
		white-space: normal;
		text-align: center;
	}

	.rabtoon-story-reading-actions > .rabtoon-story-read-button:only-child {
		grid-column: 1 / -1;
		justify-self: start;
		width: min(72%, 220px);
	}

	.rabtoon-story-reading-actions > .rabtoon-story-read-button:nth-child(3):last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: min(72%, 220px);
	}

	.rabtoon-story-actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		align-items: stretch;
	}

	.rabtoon-story-actions .rabtoon-social-actions {
		display: contents;
	}

	.rabtoon-follow-action,
	.rabtoon-social-action {
		width: 100%;
		min-width: 0;
		min-height: 42px;
		padding: 7px 6px;
		gap: 4px;
		font-size: 11.5px;
		line-height: 1.15;
		white-space: normal;
		text-align: center;
	}

	.rabtoon-action-button__icon,
	.rabtoon-action-button__icon--svg {
		width: 16px;
		height: 16px;
		flex: 0 0 16px;
		font-size: 16px;
	}

	.rabtoon-social-action small {
		margin-inline-start: 1px;
		font-size: 9px;
	}

	.rabtoon-story-content-notice {
		margin-top: 14px;
		padding: 11px 12px;
	}

	.rabtoon-story-panel {
		margin-top: 34px;
		padding-top: 24px;
	}

	.rabtoon-section-heading {
		margin-bottom: 16px;
	}

	.rabtoon-section-heading h2 {
		font-size: clamp(21px, 6.4vw, 27px);
	}

	.rabtoon-story-description {
		font-size: 14px;
		line-height: 1.75;
	}

	.rabtoon-episode-list {
		border-radius: 14px;
	}

	.rabtoon-episode-row {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 10px;
		min-height: 80px;
		padding: 10px 11px;
	}

	.rabtoon-episode-row__thumb {
		width: 58px;
		border-radius: 8px;
	}

	.rabtoon-episode-row__content {
		min-width: 0;
	}

	.rabtoon-episode-row__content strong,
	.rabtoon-episode-row__content span,
	.rabtoon-episode-row__content small {
		overflow-wrap: anywhere;
	}

	.rabtoon-comment-form {
		border-radius: 14px;
	}

	.rabtoon-comment-form__footer {
		gap: 10px;
	}

	.rabtoon-comment-form__footer button {
		min-width: 132px;
		width: auto;
		max-width: 100%;
		margin-inline-start: auto;
	}
}

@media (max-width: 430px) {
	.rabtoon-single-story {
		width: calc(100% - 24px);
	}

	.rabtoon-story-banner {
		aspect-ratio: 2.55 / 1;
		border-radius: 12px;
	}

	.rabtoon-story-cover {
		width: min(62vw, 215px);
	}

	.rabtoon-story-title {
		font-size: clamp(27px, 9vw, 36px);
	}

	.rabtoon-rating-star {
		width: 35px;
		height: 35px;
		padding: 5px;
	}

	.rabtoon-follow-action,
	.rabtoon-social-action {
		min-height: 40px;
		padding-inline: 5px;
		font-size: 11px;
	}

	.rabtoon-social-action small {
		display: none;
	}

	.rabtoon-story-panel {
		margin-top: 30px;
	}
}

@media (max-width: 340px) {
	.rabtoon-single-story {
		width: calc(100% - 18px);
	}

	.rabtoon-story-facts {
		gap: 6px;
	}

	.rabtoon-story-facts > span {
		padding-inline: 8px;
	}

	.rabtoon-story-reading-actions {
		gap: 6px;
	}

	.rabtoon-story-read-button {
		padding-inline: 8px;
		font-size: 11px;
	}

	.rabtoon-story-actions {
		gap: 6px;
	}

	.rabtoon-follow-action,
	.rabtoon-social-action {
		font-size: 10.5px;
	}
}

html[dir="rtl"] .rabtoon-single-story,
html[dir="rtl"] .rabtoon-story-summary,
html[dir="rtl"] .rabtoon-story-facts > span,
html[dir="rtl"] .rabtoon-story-rating,
html[dir="rtl"] .rabtoon-story-panel {
	text-align: start;
}

/* ==========================================================
   v1.15.15 — STORY MOBILE ACTION SIZE UNIFICATION
   Keep desktop unchanged. Match reading CTAs to the existing
   Follow / Like / Comments mobile action rhythm.
========================================================== */
@media (max-width: 720px) {
	.rabtoon-story-reading-actions {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: center;
		gap: 8px;
	}

	.rabtoon-story-reading-actions > .rabtoon-story-read-button,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:only-child,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:nth-child(3):last-child {
		grid-column: auto;
		justify-self: auto;
		flex: 0 1 calc((100% - 16px) / 3);
		width: calc((100% - 16px) / 3);
		min-width: 0;
		max-width: none;
		height: 42px;
		min-height: 42px;
		padding: 5px 7px;
		font-size: 11.5px;
		line-height: 1.12;
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 430px) {
	.rabtoon-story-reading-actions > .rabtoon-story-read-button,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:only-child,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:nth-child(3):last-child {
		height: 40px;
		min-height: 40px;
		padding-inline: 5px;
		font-size: 11px;
	}
}

@media (max-width: 340px) {
	.rabtoon-story-reading-actions {
		gap: 6px;
	}

	.rabtoon-story-reading-actions > .rabtoon-story-read-button,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:only-child,
	.rabtoon-story-reading-actions > .rabtoon-story-read-button:nth-child(3):last-child {
		flex-basis: calc((100% - 12px) / 3);
		width: calc((100% - 12px) / 3);
		font-size: 10.5px;
	}
}


/* ==========================================================
   v1.15.16 — LANGUAGE-AWARE STORY MOBILE ACTION ORDER
   Applies to every current/conditional reading CTA state while
   preserving the v1.15.15 sizes and the desktop layout.
========================================================== */
@media (max-width: 720px) {
	html[dir="ltr"] .rabtoon-story-reading-actions,
	html[dir="ltr"] .rabtoon-story-actions {
		direction: ltr;
	}

	html[dir="rtl"] .rabtoon-story-reading-actions,
	html[dir="rtl"] .rabtoon-story-actions {
		direction: rtl;
	}

	html[dir="ltr"] .rabtoon-story-reading-actions .rabtoon-story-read-button,
	html[dir="ltr"] .rabtoon-story-actions .rabtoon-action-button {
		direction: ltr;
	}

	html[dir="rtl"] .rabtoon-story-reading-actions .rabtoon-story-read-button,
	html[dir="rtl"] .rabtoon-story-actions .rabtoon-action-button {
		direction: rtl;
	}
}
