/**
 * Peyda family + typography hierarchy for ASIASTAR (self-hosted).
 *
 * Local faces live under ../fonts/. PHP (rtl-default.php) may also inject the
 * same faces with absolute URLs so CSS minify/combine cannot break paths.
 *
 * Weights: 300 Light, 400 Regular, 500 Medium, 600 SemiBold, 700 Bold
 * (800/900 alias Bold in PHP for parent rules that request those weights).
 */

/* -------------------------------------------------------------------------- */
/* @font-face — local Peyda                                                   */
/* -------------------------------------------------------------------------- */

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-SemiBold.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Bold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Peyda";
	src: url("../fonts/PeydaWeb-Bold.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------- */
/* Global stack — sole body / sans-serif family                               */
/* -------------------------------------------------------------------------- */

:root {
	--stc-font-peyda: "Peyda", Tahoma, Arial, sans-serif;
	--bs-font-sans-serif: var(--stc-font-peyda);
	--bs-body-font-family: var(--stc-font-peyda);
}

html,
body {
	font-family: var(--stc-font-peyda);
}

/* -------------------------------------------------------------------------- */
/* Family (text UI). Icon fonts are protected further below — never inherit.  */
/* -------------------------------------------------------------------------- */

button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
.elementor-widget,
.elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button-text,
.slider-text,
.css_prefix-title,
.title-tag,
.menu-title,
.css_prefix-menu-item-title,
.css_prefix-menu-item-text,
.trending-list,
.card-description,
.streamit-child-tmdb-title,
.streamit-child-card-fa-title,
.streamit-child-tmdb-status,
.movie-description,
.tvshow-description,
.episode-description,
.video-description,
.readmore-text,
.slider-desc,
.trending-dec,
.season-excerpt,
.verticle-title,
.css_prefix-verticle-title {
	font-family: var(--stc-font-peyda);
}

/* -------------------------------------------------------------------------- */
/* Base body                                                                  */
/* -------------------------------------------------------------------------- */

body {
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Hero / featured banner titles                                              */
/* -------------------------------------------------------------------------- */

.slider-text,
.slider-text.texture-text,
.css_prefix-banner .slider-text,
.css_prefix-banner-thumb-slider .slider-text,
.vertical-banner-info-desc .slider-text {
	font-family: var(--stc-font-peyda);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: normal;
}

@media (max-width: 575.98px) {
	.slider-text,
	.slider-text.texture-text {
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		font-weight: 700;
	}
}

/* -------------------------------------------------------------------------- */
/* Main page titles (movie / TV single)                                       */
/* -------------------------------------------------------------------------- */

.detail-page h1,
.detail-page h1.font-size-37,
h1.font-size-37,
h1.text-uppercase.fw-bold {
	font-family: var(--stc-font-peyda);
	font-weight: 700;
	line-height: 1.2;
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

.streamit-child-tmdb-title,
.streamit-child-tmdb-status {
	font-family: var(--stc-font-peyda);
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Download box (.stc-dl) — movie + series                                    */
/* -------------------------------------------------------------------------- */

.stc-dl,
.stc-dl .main-title,
.stc-dl__subs-label,
.stc-dl-row__label,
.stc-dl-row__quality,
.stc-dl-row__value,
.stc-dl-season__toggle,
.stc-dl-series-subs__title,
.stc-dl-series-subs__count,
.stc-dl-btn,
.stc-dl__util-btn,
.stc-dl__sub-link,
.stc-dl-ost-player,
.stc-dl-ost-player__now,
.stc-dl-ost-player__title,
.stc-dl-ost-player__time {
	font-family: var(--stc-font-peyda);
}

.stc-dl__subs-label,
.stc-dl-row__label,
.stc-dl-series-subs__count,
.stc-dl-ost-player__now,
.stc-dl-ost-player__time {
	font-weight: 500;
}

.stc-dl-season__toggle,
.stc-dl-series-subs__title,
.stc-dl-row__value,
.stc-dl-btn,
.stc-dl__util-btn,
.stc-dl__sub-link,
.stc-dl-ost-player__title {
	font-weight: 600;
}

.stc-dl-row__quality {
	font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Section headings (rail / slider / detail: Trailer, Episodes, …)            */
/* -------------------------------------------------------------------------- */

.streamit-card-title .title-tag,
.streamit-card-title .title .title-tag,
.title .title-tag,
.main-title,
h5.main-title,
.streamit-child-detail-trailer-section .main-title,
.episode-section .main-title {
	font-family: var(--stc-font-peyda);
	font-weight: 700;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.3;
}

/* -------------------------------------------------------------------------- */
/* Movie / TV card titles                                                     */
/* Primary English: .css_prefix-title / vertical banner .title / .verticle-*  */
/* Persian secondary under cards: .streamit-child-card-fa-title               */
/* -------------------------------------------------------------------------- */

.css_prefix-title,
.card-description .css_prefix-title,
.card-description .css_prefix-title a,
h5.css_prefix-title,
.vertical-banner-info-desc > .title,
.vertical-banner-info-desc h2.title,
.vertical-thumb-card-desc .verticle-title,
h5.verticle-title,
.css_prefix-verticle-title,
.streamit-child-card-fa-title,
.continue-watching-desc .streamit-child-card-fa-title {
	font-family: var(--stc-font-peyda);
	font-weight: 600;
	line-height: 1.35;
}

.css_prefix-title,
.card-description .css_prefix-title,
h5.css_prefix-title {
	font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
}

/* -------------------------------------------------------------------------- */
/* Subheadings                                                                */
/* -------------------------------------------------------------------------- */

h3,
h4,
.elementor-heading-title {
	font-weight: 600;
}

h2:not(.slider-text):not(.title) {
	font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Descriptions / synopses (Persian body copy) — Medium 500                   */
/* -------------------------------------------------------------------------- */

.movie-description,
.movie-description .readmore-text,
.tvshow-description,
.tvshow-description .readmore-text,
.episode-description,
.episode-description .readmore-text,
.video-description,
.video-description .readmore-text,
.slider-desc,
.trending-dec,
.season-excerpt,
.vertical-banner-info-desc .description,
.vertical-banner-info-desc .description p,
.css_prefix-banner p.line-count-3,
.trending-info p.line-count-3,
.trending-info .line-count-3 {
	font-family: var(--stc-font-peyda);
	font-weight: 500;
	line-height: 1.55;
}

.trending-list .genres,
.trending-list .tag,
.trending-list .starring {
	font-weight: 500;
}

.trending-list .genres span,
.trending-list .tag span,
.trending-list .starring span {
	font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/* Metadata (IMDb, runtime, language, genre chips)                            */
/* -------------------------------------------------------------------------- */

.imdb-ratting,
.imdb-ratting .rating-text,
.movie-time,
.movie-time-text,
.movie-language,
.release-date,
.genres-list li,
.genres-list li a {
	font-family: var(--stc-font-peyda);
	font-weight: 400;
	font-size: clamp(0.75rem, 1vw, 0.875rem);
	line-height: 1.4;
}

.genres-list li {
	font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Buttons & important controls                                               */
/* Detail tags (e.g. Limited Series) use pill links, not .btn.                */
/* -------------------------------------------------------------------------- */

.btn,
.btn.btn-primary,
.hover-card-action-btn,
.view-all-btn a,
.subscribe-btn,
.watch-list-btn,
.hover-card .hover-card-action-btn,
.hover-card .watch-list-btn,
.hover-card .watch-list-btn span,
.css-prefix-play-button .hover-card-action-btn,
.css-prefix-play-button .watch-list-btn,
.css-prefix-play-button .watch-list-btn span,
.detail-part .movie-tags li a,
.detail-part .tvshow-tags li a,
.detail-part .video-tags li a,
.movie-tags li a,
.tvshow-tags li a,
.video-tags li a,
.episode-nav-btn .nav-link,
.episode-nav-btn .css_prefix-change-season,
.badge.bg-secondary .fw-medium,
.timeline-badge,
.view-more-episode-btn {
	font-family: var(--stc-font-peyda);
	font-weight: 600;
}

.view-all-btn a {
	font-size: clamp(0.8125rem, 1vw, 0.9375rem);
}

/* -------------------------------------------------------------------------- */
/* Navigation — same weight for icon tabs (.menu-title) and plain tabs        */
/* (.css_prefix-menu-item-title from Streamit when no menu icon is set).      */
/* -------------------------------------------------------------------------- */

#site-navigation .menu-title,
.header-default #site-navigation .menu-title,
#site-navigation .css_prefix-menu-item-title,
.header-default #site-navigation .css_prefix-menu-item-title,
#site-navigation .css_prefix-menu-item-text,
.header-default #site-navigation .css_prefix-menu-item-text,
.css_prefix-menu-item-text {
	font-family: var(--stc-font-peyda);
	font-weight: 500;
}

#site-navigation .sf-menu > li.current-menu-item > a .menu-title,
#site-navigation .sf-menu > li.current_page_item > a .menu-title,
#site-navigation .sf-menu > li.current-menu-ancestor > a .menu-title,
#site-navigation .sf-menu > li.current-menu-item > a .css_prefix-menu-item-title,
#site-navigation .sf-menu > li.current_page_item > a .css_prefix-menu-item-title,
#site-navigation .sf-menu > li.current-menu-ancestor > a .css_prefix-menu-item-title,
#site-navigation .navbar-nav > li.current-menu-item > a .menu-title,
#site-navigation .navbar-nav > li.current-menu-item > a .css_prefix-menu-item-title {
	font-weight: 600;
}

/*
 * Protect icon fonts from the global Peyda stack.
 * Do NOT use font-family: inherit here — icons need their glyph faces.
 */
.fa,
.fas,
.far,
.fal,
.fat,
.fad,
.fa-solid,
.fa-regular,
.fa-light,
.fa-thin,
.fa-duotone,
#site-navigation li[class*="menu-icon-"] > a .menu-title::before,
li[class*="menu-icon-"] > a .menu-title::before {
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
	font-style: normal;
}

.fab,
.fa-brands {
	font-family: "Font Awesome 6 Brands" !important;
	font-style: normal;
}

.iconly,
[class^="iconly-"],
[class*=" iconly-"],
[class^="iconly"]::before,
[class*="iconly"]::before {
	font-family: "Iconly" !important;
	font-style: normal;
}

.slick-prev:before,
.slick-next:before,
.slick-arrow:before {
	font-family: "slick" !important;
	font-style: normal;
}

/* -------------------------------------------------------------------------- */
/* Footer — match title/card weight so copyright + widgets aren't thin        */
/* -------------------------------------------------------------------------- */

.css_prefix-footer,
.css_prefix-footer .widget,
.css_prefix-footer .widget-title,
.css_prefix-footer p,
.css_prefix-footer a,
.css_prefix-footer li,
.copyright-footer,
.copyright-footer .copyright,
.copyright-footer a,
.copyright-footer p {
	font-family: var(--stc-font-peyda);
}

.css_prefix-footer .widget-title {
	font-weight: 700;
}

.css_prefix-footer,
.css_prefix-footer .widget,
.css_prefix-footer p,
.css_prefix-footer a,
.css_prefix-footer li,
.copyright-footer,
.copyright-footer .copyright,
.copyright-footer a,
.copyright-footer p {
	font-weight: 600;
}
