/* SM9 visual theme. Scoped to the opted-in layouts; streaming and data logic stay intact. */
html.sm9-ui {
  color-scheme: dark;
  --bs-primary: #925cff; --bs-primary-rgb: 146,92,255;
  --bs-primary-bg-subtle: #241a3c; --bs-primary-border-subtle: #624298;
  --bs-body-bg: #060809; --bs-body-bg-rgb: 6,8,9;
  --bs-body-color: #a3afc1; --bs-body-color-rgb: 163,175,193;
  --bs-heading-color: #f8f9fc; --bs-border-color: #242831;
  --bs-secondary-bg: #10151c; --bs-tertiary-bg: #151a23;
  --bs-link-color: #b69aff; --bs-link-hover-color: #55d2e3;
  --sm9-purple: #925cff; --sm9-cyan: #20bdd2; --sm9-muted: #9caac0;
  --sm9-border: rgba(178,193,216,.1); --sm9-panel: #10151c;
  --bs-font-sans-serif: 'Inter', 'Segoe UI', Arial, sans-serif;
  scroll-padding-top: 110px;
}
.sm9-ui body { font-family: var(--bs-font-sans-serif); background: #060809; color: #a3afc1; line-height: 1.65; }
.sm9-ui h1,.sm9-ui h2,.sm9-ui h3,.sm9-ui h4,.sm9-ui h5,.sm9-ui h6 { color: #f8f9fc; font-family: inherit; letter-spacing: -.035em; }
.sm9-ui ::selection { background: #925cff; color: white; }
.sm9-ui :focus-visible { outline: 2px solid #5bd4e5; outline-offset: 4px; }
.sm9-ui .text-primary { color: #b298ff !important; }
.sm9-ui .bg-primary { background-color: #8650e8 !important; }
.sm9-ui a { transition: color .2s, background-color .2s, border-color .2s; }
.sm9-ui a:hover { color: #c8b2ff; }
.sm9-ui .btn { border-radius: 12px; font-weight: 600; letter-spacing: .01em; transition: background .2s, box-shadow .2s, transform .2s; }
.sm9-ui .btn-primary {
  --bs-btn-bg: #925cff; --bs-btn-border-color: #925cff; --bs-btn-hover-bg: #a578ff;
  --bs-btn-hover-border-color: #a578ff; --bs-btn-active-bg: #7e44dc; --bs-btn-active-border-color: #7e44dc;
  --bs-btn-disabled-bg: #63468c; --bs-btn-disabled-border-color: #63468c;
  background: linear-gradient(110deg,#925cff 5%,#7a66ef 48%,#19bcd0 100%);
  border: 1px solid transparent; color: #fff;
  box-shadow: 0 5px 22px rgba(135,76,237,.2);
}
.sm9-ui .btn-primary:hover { background: linear-gradient(110deg,#a574ff,#8c7bff 48%,#34cce0); color: #fff; box-shadow: 0 8px 28px #925cff35; }
.sm9-ui .btn-primary:disabled { background: #523c73; box-shadow: none; }
.sm9-ui .btn-outline-primary { --bs-btn-color: #bda2ff; --bs-btn-border-color: #744bb8; --bs-btn-hover-bg: #925cff; --bs-btn-hover-border-color: #925cff; }
.sm9-ui .btn-dark,.sm9-ui .btn-secondary,.sm9-ui .btn-light { background: #171c25; border-color: #303542; color: #e6e8f1; }
.sm9-ui .card,.sm9-ui .modal-content,.sm9-ui .offcanvas { background-color: #10151c; border: 1px solid var(--sm9-border); border-radius: 24px; box-shadow: none; }
.sm9-ui .card-header,.sm9-ui .card-footer { background: transparent; border-color: var(--sm9-border); }
.sm9-ui .form-control,.sm9-ui .form-select,.sm9-ui .select2-container--default .select2-selection--single,.sm9-ui .select2-container--default .select2-selection--multiple {
  background-color: #151a22; color: #e5eaf2; border: 1px solid #2b303c; border-radius: 12px;
}
.sm9-ui .form-control::placeholder { color: #8c98ac; }
.sm9-ui .form-control:focus,.sm9-ui .form-select:focus { border-color: #9873e5; box-shadow: 0 0 0 3px #925cff18; background-color: #181d28; color: #fff; }
.sm9-ui .form-check-input:checked { background-color: #925cff; border-color: #925cff; }
.sm9-ui .form-label { color: #d1d8e4; font-weight: 500; }
.sm9-ui .dropdown-menu,.sm9-ui .select2-dropdown { background: #131822; border: 1px solid #2a303c; border-radius: 15px; box-shadow: 0 16px 50px #0006; }
.sm9-ui .dropdown-item { color: #b6c1d3; }
.sm9-ui .dropdown-item:hover,.sm9-ui .dropdown-item:focus,.sm9-ui .dropdown-item.active { background: #925cff20; color: #d0baff; }
.sm9-ui .nav-pills .nav-link.active,.sm9-ui .page-item.active .page-link { background: #925cff; border-color: #925cff; color: #fff; }
.sm9-ui .page-link { background: #12171f; border-color: #2b303a; color: #b8c2d3; border-radius: 9px; }
.sm9-ui .page-link:hover { background: #251c3a; color: white; }
.sm9-ui .nav-tabs { border-color: #2a2e38; }
.sm9-ui .nav-tabs .nav-link.active { color: #bda2ff; background: #171321; border-color: #3a2a58; }
.sm9-ui .accordion-item,.sm9-ui .accordion-button { background: #10151c; color: #d5dce8; border-color: #272d37; }
.sm9-ui .accordion-button:not(.collapsed) { background: #1c152b; color: #c7afff; }
.sm9-gradient-text { background: linear-gradient(100deg,#9965ff 5%,#d7c5ff 40%,#d9f5f7 63%,#1ebbd0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Public navigation and homepage. */
.sm9-frontend header.header-absolute { position: relative; background: #060809; }
.sm9-frontend header .iq-navbar { background: rgba(6,8,9,.94) !important; border-bottom: 1px solid #ffffff0c; backdrop-filter: blur(20px); box-shadow: none; }
.sm9-frontend header .navbar-inner { min-height: 88px; padding-inline: clamp(20px,4vw,64px); }
.sm9-frontend .navbar-brand .logo { max-width: 156px; object-fit: contain; }
.sm9-frontend .horizontal-nav .nav-link { color: #a7b3c6; font-size: 14px; font-weight: 500; }
.sm9-frontend .horizontal-nav .nav-link.active,.sm9-frontend .horizontal-nav .nav-link:hover { color: #c3a9ff !important; }
.sm9-frontend .horizontal-nav .sub-menu { background: #11161e; border: 1px solid #ffffff12; border-radius: 16px; }
.sm9-frontend .search-input-wrapper { background: #11151b; border: 1px solid #ffffff12; border-radius: 12px; }
.sm9-frontend .search-input { color: #dfe5ef; }
.sm9-frontend header .btn-primary { border-radius: 999px; }
.sm9-frontend header .btn-warning { background: #925cff16; color: #c2a6ff; border: 1px solid #925cff44; border-radius: 99px; }
.sm9-frontend header .btn-warning:hover { background: #925cff2c; color: #d9c7ff; }
.sm9-hero { position: relative; isolation: isolate; overflow: hidden; padding: 68px 24px 0; background: radial-gradient(ellipse at 0 15%,#4c127b22,transparent 38%),radial-gradient(ellipse at 100% 80%,#12326925,transparent 40%),#060809; }
.sm9-hero-content { position: relative; z-index: 1; max-width: 840px; margin-inline: auto; text-align: center; }
.sm9-eyebrow { display: inline-flex; gap: 10px; align-items: center; padding: 6px 16px; border-radius: 99px; border: 1px solid #ffffff16; background: #121115; color: #b18aff; font-size: 12px; font-weight: 600; }
.sm9-status-dot { width: 7px; height: 7px; background: #a16aff; border-radius: 50%; box-shadow: 0 0 14px #925cff66; }
.sm9-hero h1 { font-size: clamp(48px,6.4vw,90px); line-height: 1.07; font-weight: 750; letter-spacing: -.065em; margin: 34px 0 24px; }
.sm9-hero-content > p { max-width: 670px; font-size: clamp(16px,1.5vw,20px); line-height: 1.7; color: #9cacc2; margin: 0 auto; text-wrap: pretty; }
.sm9-hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px; margin: 30px 0 56px; }
.sm9-hero-actions .btn { display: inline-flex; gap: 12px; align-items: center; min-height: 50px; padding: 12px 24px; border-radius: 99px; font-size: 14px; }
.sm9-secondary-link { display: inline-flex; align-items: center; gap: 12px; color: #c2cad7; font-size: 14px; }
.sm9-orbit { position: absolute; z-index: 0; pointer-events: none; top: 115px; width: 340px; height: 660px; border: 1px solid; border-radius: 100px; transform: rotate(-9deg); }
.sm9-orbit:before,.sm9-orbit:after { content: ''; position: absolute; inset: 13px; border: 1px solid currentColor; border-radius: inherit; opacity: .35; }
.sm9-orbit:after { inset: 26px; opacity: .16; }
.sm9-orbit-purple { left: -235px; color: #8d41e3; border-color: #8542d6; box-shadow: 0 0 12px #9449ed44,inset 0 0 12px #9449ed22; }
.sm9-orbit-cyan { right: -235px; color: #2c6cc1; border-color: #285f9d; transform: rotate(9deg); box-shadow: 0 0 12px #356dde33; }
.sm9-category-strip { position: relative; z-index: 1; max-width: 1100px; margin-inline: auto; display: flex; flex-wrap: wrap; border-top: 1px solid #ffffff0e; border-bottom: 1px solid #ffffff0e; background: linear-gradient(100deg,#10101477,#0d142477); }
.sm9-category-strip > a { flex: 1 1 220px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 18px; color: #f4f5f9; position: relative; }
.sm9-category-strip > a + a:before { content: ''; position: absolute; inset-inline-start: 0; height: 40px; width: 1px; background: #ffffff10; }
.sm9-category-strip > a > i:first-child { color: #b395ff; font-size: 25px; }
.sm9-category-strip > a > i:last-child { color: #6c7a91; font-size: 16px; }
.sm9-category-strip > a > span { font-size: 15px; font-weight: 650; }
.sm9-category-strip small { display: block; font-size: 10px; font-weight: 400; color: #91a0b6; letter-spacing: .025em; margin-top: 3px; }
.sm9-category-strip > a:hover { background: #925cff0d; }
.sm9-section-label { margin: 52px clamp(20px,4vw,64px) 22px; display: flex; align-items: center; gap: 13px; color: #f3f5fa; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.sm9-section-label > span { width: 36px; height: 3px; border-radius: 3px; background: #925cff; }
.sm9-section-label small { margin-inline-start: auto; color: #6e829d; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sm9-frontend body { overflow-x: clip; }
.sm9-frontend .sd-mobile-hub-stack { margin-inline: clamp(20px,4vw,64px); width: calc(100% - 2 * clamp(20px,4vw,64px)); max-width: calc(100% - 2 * clamp(20px,4vw,64px)); }
.sm9-frontend .sd-mobile-hub-stack #banner-section { width: 100%; }
.sm9-frontend .main-banner { border-radius: 28px; overflow: hidden; border: 1px solid #ffffff15; }
.sm9-frontend .main-banner .slick-item { height: 540px; min-height: 0; background-position: center; }
.sm9-frontend .main-banner .movie-content { background: linear-gradient(90deg,#08090bf2 0%,#08090bb3 40%,#08090b08 100%); }
.sm9-frontend .main-banner .movie-info { padding-block: 40px; }
.sm9-frontend .main-banner .movie-info h4 { font-size: clamp(28px,3.6vw,52px); line-height: 1.12; }
.sm9-frontend .main-banner .movie-info > .line-count-3 { color: #b7c0ce; font-size: 14px; }
.sm9-frontend .main-banner .movie-tag .tag { color: #bc9fff; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.sm9-frontend .main-banner .slick-dots { bottom: 18px; }
.sm9-frontend .slick-dots li.slick-active button { background-color: #a479ff; }
.sm9-frontend .section-wraper { margin-top: 46px; margin-bottom: 24px; }
.sm9-frontend .streamit-block .main-title,.sm9-frontend .section-wraper .main-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px,2vw,27px); font-weight: 650; letter-spacing: -.04em; }
.sm9-frontend .streamit-block .main-title:before { content: ''; flex: 0 0 24px; height: 3px; background: #925cff; border-radius: 4px; }
.sm9-frontend .block-images,.sm9-frontend .iq-card,.sm9-frontend .iq-watching-block,.sm9-frontend .geners-card { border-radius: 18px; }
.sm9-frontend .block-images .img-box,.sm9-frontend .block-images .img-box img,.sm9-frontend .iq-card .block-images img { border-radius: 18px; }
.sm9-frontend .block-images .image-box,.sm9-frontend .block-images .image-box > img { border-radius: 18px; }
.sm9-frontend .block-images { border: 1px solid #ffffff0d; background: #10151c; transition: border-color .2s,box-shadow .2s; }
.sm9-frontend .block-images:hover { border-color: #925cff66; box-shadow: 0 12px 35px #0005; }
.sm9-frontend .block-description,.sm9-frontend .card-description { background: linear-gradient(0deg,#10121cf5,transparent); }
.sm9-frontend .footer { margin-top: 76px; background: #0a0d12; border-top: 1px solid #ffffff0d; }
.sm9-frontend .footer .footer-top { padding-block: 64px; }
.sm9-frontend .footer .footer-title { font-size: 16px; color: #eff2f8; }
.sm9-frontend .footer a { color: #9aa9be; }
.sm9-frontend .footer a:hover { color: #ba9dff; }
.sm9-frontend .footer .social-media a { background: #171c26; border: 1px solid #ffffff12; border-radius: 10px; }
/* Admin workspace: preserve layout dimensions and the existing component behavior. */
.sm9-admin body { background: radial-gradient(ellipse at 90% 0,#19334c17,transparent 40%),#080a0e; }
.sm9-admin .sidebar { background: #0c0f15 !important; border-inline-end: 1px solid #ffffff0c; box-shadow: none; }
.sm9-admin .sidebar .sidebar-header { border-bottom: 1px solid #ffffff0a; padding-block: 22px; }
.sm9-admin .sidebar .nav-item .nav-link { color: #96a3b8; border-radius: 11px; margin: 3px 12px; font-size: 13px; }
.sm9-admin .sidebar .nav-item .nav-link.active,.sm9-admin .sidebar .nav-item .nav-link[aria-expanded=true] { background: linear-gradient(90deg,#925cff27,#925cff09) !important; color: #c3a9ff !important; box-shadow: inset 3px 0 #925cff; }
.sm9-admin .sidebar .nav-item .nav-link:hover { background: #ffffff06; color: #e3d7ff; }
.sm9-admin .sidebar .nav-item.static-item .nav-link { color: #62728a; font-size: 10px; letter-spacing: .14em; font-weight: 700; margin-top: 20px; }
.sm9-admin .iq-navbar { background: #0c1017f2 !important; border-bottom: 1px solid #ffffff0c; box-shadow: none !important; backdrop-filter: blur(16px); }
.sm9-admin .content-inner { padding-top: 30px; }
.sm9-admin .breadcrumb { font-size: 13px; }
.sm9-admin .card { border-radius: 22px; background: linear-gradient(130deg,#141a23,#0f131b); }
.sm9-admin .card .card-header { padding: 24px; }
.sm9-admin .card-title { font-weight: 650; font-size: 18px; }
.sm9-admin .card-icon { background: #925cff19 !important; color: #b89aff !important; border: 1px solid #925cff22; border-radius: 14px !important; }
.sm9-admin .table { --bs-table-bg: transparent; --bs-table-color: #b5c0d0; --bs-table-border-color: #ffffff0a; --bs-table-hover-bg: #925cff08; --bs-table-striped-bg: #ffffff02; }
.sm9-admin .table thead th { background: #141a24; color: #9caec7; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; padding-block: 20px; font-weight: 650; }
.sm9-admin .table tbody td { padding-block: 18px; border-bottom: 1px solid #ffffff09; }
.sm9-admin .table h4,.sm9-admin .table h5,.sm9-admin .table h6 { font-size: 14px; letter-spacing: -.02em; }
.sm9-admin .table img { border-radius: 12px; }
.sm9-admin .table-responsive,.sm9-admin .dataTables_wrapper { border-radius: 18px; }
.sm9-admin .dataTables_wrapper { background: #0e131b; border: 1px solid #ffffff0a; padding: 14px; margin-top: 18px; }
.sm9-admin .dataTables_info,.sm9-admin .dataTables_length { color: #8292a9; font-size: 12px; }
.sm9-admin .table .form-switch .form-check-input { background-color: #2a3340; border-color: #3a4556; }
.sm9-admin .table .form-switch .form-check-input:checked { background-color: #9867ef; border-color: #9867ef; }
.sm9-admin .footer { background: transparent; border-top: 1px solid #ffffff09; color: #65758d; }
.sm9-admin .apexcharts-tooltip { background: #151a23 !important; color: #e5eaf2 !important; border-color: #343044 !important; }
/* Auth surfaces share the same palette, with forms and feedback left intact. */
.sm9-auth body { background: radial-gradient(ellipse at 15% 5%,#5b279a33,transparent 45%),radial-gradient(ellipse at 90% 90%,#12607822,transparent 45%),#060809; }
.sm9-auth #login > .vh-100,.sm9-auth [style*="login_banner"],.sm9-auth body > div[style*="background-image"] { background-image: radial-gradient(ellipse at 15% 5%,#5b279a33,transparent 45%),radial-gradient(ellipse at 90% 90%,#12607822,transparent 45%) !important; }
.sm9-auth .user-login-card,.sm9-auth .auth-card,.sm9-auth .card { border-radius: 28px; background: #10151cf2; border: 1px solid #ffffff14; box-shadow: 0 30px 100px #0005; }
.sm9-auth .user-login-card { padding: clamp(24px,4vw,44px); }
.sm9-auth .auth-heading h5 { font-size: 27px; margin-bottom: 26px; }
.sm9-auth .form-control { min-height: 48px; }
.sm9-auth .btn-primary { min-height: 48px; }
.sm9-discover { margin: 84px clamp(20px,4vw,64px) 0; }
.sm9-discover-heading { max-width: 680px; margin-bottom: 34px; }
.sm9-kicker { display: block; color: #18c4a3; font-weight: 650; text-transform: uppercase; font-size: 10px; letter-spacing: .22em; margin-bottom: 20px; }
.sm9-discover h2 { font-size: clamp(38px,5vw,66px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; margin-bottom: 20px; }
.sm9-discover-heading p { color: #9bacc2; font-size: 17px; max-width: 540px; }
.sm9-discover-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 32px; }
.sm9-discover-panel { background: linear-gradient(120deg,#0d1014,#0e1821); padding: clamp(22px,3vw,40px); border: 1px solid #ffffff0c; border-radius: 36px; }
.sm9-panel-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 28px; }
.sm9-panel-heading h3 { font-size: 23px; margin: 0; }
.sm9-panel-heading > span { color: #27c4d6; font-size: 9px; font-weight: 700; letter-spacing: .08em; border: 1px solid #0d6171; background: #07333d55; padding: 9px 12px; border-radius: 12px; }
.sm9-discover-links { display: grid; gap: 12px; }
.sm9-discover-links > a { display: flex; align-items: center; gap: 15px; padding: 14px; background: #ffffff04; border: 1px solid #ffffff0b; border-radius: 16px; color: #e4e8ee; }
.sm9-discover-links > a:hover { background: #925cff0c; border-color: #925cff44; }
.sm9-discover-links strong { font-size: 14px; font-weight: 600; }
.sm9-discover-links small { display: block; color: #8394ac; font-size: 11px; margin-top: 3px; }
.sm9-discover-links > a > i { margin-inline-start: auto; color: #73839e; }
.sm9-link-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #925cff17; color: #aa7dff; font-size: 22px; border-radius: 12px; }
.sm9-link-cyan { background: #20bdd214; color: #20bdd2; }
.sm9-membership-panel { display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(145deg,#9f6bfa,#8451f5); padding: clamp(24px,3vw,40px); border-radius: 36px; color: #f5edff; }
.sm9-membership-star { font-size: 34px; color: #e1ccff; margin-bottom: 18px; }
.sm9-membership-panel h3 { font-size: clamp(27px,2.6vw,36px); line-height: 1.15; font-weight: 700; color: #fff; margin-bottom: 22px; }
.sm9-membership-panel p { font-size: 15px; color: #f0e4ff; line-height: 1.6; margin-bottom: 36px; }
.sm9-membership-panel > a { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; color: #8250ed; border-radius: 14px; padding: 16px 22px; width: 100%; margin-top: auto; text-transform: uppercase; font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.sm9-membership-panel > a:hover { background: #f1eaff; color: #6532c5; }
@media (max-width: 900px) { .sm9-discover-grid { grid-template-columns: 1fr; gap: 20px; } .sm9-membership-panel { min-height: 340px; } }
@media (max-width: 575px) { .sm9-panel-heading { flex-wrap: wrap; } .sm9-discover { margin-top: 52px; } .sm9-discover-panel,.sm9-membership-panel { border-radius: 24px; } }
@media (min-width: 1200px) { .sm9-frontend .horizontal-nav .navbar-nav > .nav-item > .nav-link { padding-inline: 16px; } }
@media (max-width: 1199px) {
  .sm9-frontend .horizontal-nav.offcanvas { border-radius: 0; background: #10151c; }
  .sm9-frontend header .navbar-inner { min-height: 78px; }
  .sm9-hero { padding-top: 52px; }
}
@media (max-width: 767px) {
  .sm9-hero { padding: 42px 20px 0; }
  .sm9-hero h1 { font-size: clamp(42px,9vw,64px); margin-top: 28px; }
  .sm9-hero-content > p { max-width: 460px; font-size: 15px; }
  .sm9-hero-actions { gap: 20px; margin: 26px 0 36px; }
  .sm9-category-strip > a { flex-basis: 45%; padding: 20px 10px; justify-content: flex-start; gap: 10px; }
  .sm9-category-strip > a > span { font-size: 13px; }
  .sm9-category-strip small { font-size: 9px; }
  .sm9-category-strip > a > i:first-child { font-size: 22px; }
  .sm9-category-strip > a > i:last-child { display: none; }
  .sm9-category-strip > a + a:before { display: none; }
  .sm9-orbit { opacity: .45; }
  .sm9-section-label { margin-top: 36px; font-size: 21px; }
  .sm9-section-label small { display: none; }
  .sm9-frontend .main-banner { border-radius: 20px; }
  .sm9-frontend .main-banner .slick-item { height: auto; min-height: 460px; }
  .sm9-frontend .main-banner .movie-content { background: linear-gradient(90deg,#08090be8,#08090b90); }
  .sm9-frontend .main-banner .movie-info { padding-block: 40px; }
  .sm9-frontend .section-wraper { margin-top: 32px; }
  .sm9-admin .dataTables_wrapper { padding: 8px; }
  .sm9-auth .user-login-card { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .sm9-ui *, .sm9-ui *:before, .sm9-ui *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Supplied Samflixy artwork: preserve image proportions and animate the UI, not the logo pixels. */
.sm9-ui .loader-gif { object-fit: contain; animation: samflixy-loading-pulse 1.5s ease-in-out infinite alternate; }
@keyframes samflixy-loading-pulse { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sm9-ui .loader-gif { animation: none; } }
