/* ==========================================================
   cini-common.css
   Shared styles for ALL Dinamalar Cinema pages
   (detail.php, main.php, and any future pages)
   ========================================================== */

/* ========================================
   Brand Color Variables
======================================== */
:root {
  --brand-red: #aa092f;
  --brand-dark: #111;
  --fb-blue: #1877f2;
  --x-black: #111;
  --wa-green: #25d366;
  --tg-blue: #2aabee;
  --mail-red: #ea4335;
}

/* ========================================
   Layout: Main Container
======================================== */

/* PROTECTIVE RULES: Prevent page-specific CSS from breaking header/footer */
html,
body {
  width: 100% !important;
  max-width: none !important;
  /*overflow-x: hidden !important;*/
  scrollbar-gutter: stable;
}

#mvp-site,
#mvp-site-wall,
#mvp-site-main {
  width: 100% !important;
  max-width: none !important;
}

/* Ensure header elements stay full-width and properly positioned */
#mvp-main-head-wrap {
  width: 100% !important;
  max-width: none !important;
  position: relative !important;
  z-index: 100000 !important;
  isolation: isolate;
  left: 0 !important;
  right: 0 !important;
}

#mvp-leader-wrap {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
}

#mvp-main-nav-top-wrap {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  z-index: 100001 !important;
}

#mvp-main-nav-wrap,
#mvp-main-nav-top,
#mvp-main-nav-bot,
#mvp-main-nav-bot-cont {
  position: relative !important;
  z-index: 100001 !important;
}

.ticker-container,
.main-top-ad,
#mvp-main-body-wrap {
  position: relative;
  z-index: 1;
}

/* Ad Defaults */
.mvp-leader1 {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.mvp-leader2 {
  display: none;
}

#mvp-main-body-wrap {
  background: transparent !important;
}

/* ========================================
   Interaction Guardrails
======================================== */
body,
body *:not(input):not(textarea):not(select):not(option):not([contenteditable="true"]) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img,
a,
button,
svg {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-drag: none;
}

img,
a {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
option,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* ========================================
   Breadcrumb (used in all pages)
======================================== */
nav.woocommerce-breadcrumb {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  line-height: 1.2;
  flex-wrap: wrap;
}

.breadcrumbbdr {
  width: 100%;
}

nav.woocommerce-breadcrumb a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

nav.woocommerce-breadcrumb svg {
  width: 24px;
  height: 24px;
  color: var(--brand-red);
  fill: currentColor;
  flex-shrink: 0;
  margin-top: -5px;
}

nav.woocommerce-breadcrumb>span:last-child {
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #111 !important;
  line-height: 1.25;
}

.zox-dark nav.woocommerce-breadcrumb,
.zox-dark .breadcrumbbdr,
.zox-dark nav.woocommerce-breadcrumb a,
.zox-dark nav.woocommerce-breadcrumb span,
.zox-dark .breadcrumbbdr a,
.zox-dark .breadcrumbbdr span {
  color: #fff !important;
}

.zox-dark nav.woocommerce-breadcrumb svg,
.zox-dark .breadcrumbbdr svg {
  color: #aa092f !important;
  fill: currentColor !important;
}

/* ========================================
   Hero Share Bar — desktop pill
======================================== */
.hero-share-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  background: #f4f6f8;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 7px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  flex-wrap: wrap;
}

.zox-dark .hero-share-bar {
  background: #1e1e1e;
  border-color: #333;
}

.hero-share-bar .share-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-right: 4px;
  white-space: nowrap;
}

.zox-dark .hero-share-bar .share-label {
  color: #aaa;
}

.hero-share-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.zox-dark .hero-share-bar a {
  background: #2a2a2a;
  border-color: #444;
}

.hero-share-bar a:hover {
  transform: translateY(-3px) scale(1.12);
  color: #fff;
  border-color: transparent;
}

.hero-share-bar a.sh-fb:hover {
  background: var(--fb-blue);
}

.hero-share-bar a.sh-x:hover {
  background: var(--x-black);
}

.hero-share-bar a.sh-wa:hover {
  background: var(--wa-green);
}

.hero-share-bar a.sh-tg:hover {
  background: var(--tg-blue);
}

.hero-share-bar a.sh-mail:hover {
  background: var(--mail-red);
}

/* ========================================
   Mobile Share Button — trigger + dropdown
======================================== */
.mobile-share-btn {
  display: none;
  /* hidden on desktop */
}

.mobile-share-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  flex-direction: row;
  gap: 10px;
  white-space: nowrap;
}

.zox-dark .mobile-share-dropdown {
  background: #1e1e1e;
  border-color: #333;
}

.mobile-share-dropdown.open {
  display: flex;
}

/* Colorful icons — always visible, not just on hover */
.mobile-share-dropdown a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.mobile-share-dropdown a.sh-fb {
  background: var(--fb-blue);
  color: #fff;
  border-color: var(--fb-blue);
}

.mobile-share-dropdown a.sh-x {
  background: var(--x-black);
  color: #fff;
  border-color: var(--x-black);
}

.mobile-share-dropdown a.sh-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}

.mobile-share-dropdown a.sh-tg {
  background: var(--tg-blue);
  color: #fff;
  border-color: var(--tg-blue);
}

.mobile-share-dropdown a.sh-mail {
  background: var(--mail-red);
  color: #fff;
  border-color: var(--mail-red);
}

.mobile-share-dropdown a:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* ========================================
   Sidebar
======================================== */
@media (min-width: 769px) {
  #mvp-side-wrap {
    max-width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
  }

  .mvp-feat5-small-main,
  .mvp-feat5-small-main-img {
    overflow: hidden !important;
    max-width: 100% !important;
  }
}

/* ========================================
   Mobile Sidebar — push below content
======================================== */
@media (max-width: 768px) {
  #mvp-side-wrap {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    /* border-top: 1px solid #e0e0e0; */
    padding-top: 16px;
  }

  .zox-dark #mvp-side-wrap {
    border-top-color: #333;
  }

  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Fluid containers */
  #mvp-site,
  #mvp-site-wall,
  #mvp-main-body-wrap,
  #mvp-article-wrap,
  #mvp-article-cont,
  .mvp-main-box,
  #mvp-post-main,
  #mvp-post-content,
  #mvp-content-wrap,
  .mvp-post-soc-out,
  .mvp-post-soc-in,
  #mvp-post-add-box,
  #mvp-post-add-wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Breadcrumb mobile */
  nav.woocommerce-breadcrumb {
    font-size: 13px !important;
    gap: 5px !important;
    margin-bottom: 0 !important;
    flex-wrap: wrap;
  }

  nav.woocommerce-breadcrumb svg {
    width: 20px !important;
    height: 20px !important;
  }

  nav.woocommerce-breadcrumb>span:last-child {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  /* Share bar: hide desktop pill, show mobile trigger */
  .hero-share-bar {
    display: none !important;
  }

  .mobile-share-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 4px;
    width: 100%;
  }

  .mobile-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f4f6f8;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
  }

  .zox-dark .mobile-share-trigger {
    background: #1e1e1e;
    border-color: #333;
    color: #ccc;
  }

  .mobile-share-trigger:active {
    background: #e0e0e0;
  }

  .mobile-share-trigger i {
    font-size: 16px;
    color: var(--brand-red);
  }

  /* Advertisements */
  .mvp-post-ad-wrap,
  #mvp-post-bot-ad {
    text-align: center;
    overflow: hidden;
  }

  .mvp-post-ad img,
  #mvp-post-bot-ad img,
  .mvp-leader4 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
  }

  .mvp-leader3 {
    display: none !important;
  }

  /* Fixed 970x90 Top Ad Responsive */
  .mvp-leader1 {
    display: none !important;
  }

  .mvp-leader2 {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
  }

  .mvp-widget-ad {
    width: 100% !important;
    max-width: 100% !important;
    /* padding: 0 10px; */
    box-sizing: border-box;
  }
}

/* ========================================
   Shorts Detail Vertical Scroller
======================================== */
.shorts-detail-container {
  height: 100vh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
}

.shorts-slide {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shorts-video-wrapper {
  width: 100%;
  max-width: 450px;
  height: 85vh;
  position: relative;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .shorts-video-wrapper {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

/* ========================================
   Actor / Tag Chips Section
   (used in detail.php, potentially others)
======================================== */
.cinema-tags-alt {
  padding: 10px 0;
}

.actor-tag-container {
  max-width: 900px;
  margin: auto;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
}

.zox-dark .actor-tag-container {
  background: #1e1e1e;
}

.actor-img {
  width: 100%;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
}

.tags-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: none;
}

.tags-scroll::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: #ccc solid 1px;
  color: #000 !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.zox-dark .tag-chip {
  color: #ccc !important;
  border-color: #666;
}

.tag-chip:hover {
  background: var(--brand-red);
  color: #fff !important;
}

@media (min-width: 769px) {
  .actor-tag-container {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .actor-img {
    width: 120px;
    margin: 0;
  }

  .tags-scroll {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  .tag-chip {
    min-width: 0 !important;
    max-width: 100%;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .actor-tag-container {
    flex-direction: column;
    gap: 4px;
  }

  .actor-img {
    width: 80px !important;
    margin: 0 auto !important;
  }

  .tags-scroll {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
}

/* ========================================
   Desktop feat5 overflow fix
======================================== */
.mvp-feat5-small-main {
  overflow: hidden !important;
  max-width: 100%;
}

.mvp-feat5-small-main-img {
  overflow: hidden;
  max-width: 100%;
}

.mvp-feat5-small-main-img img {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* ========================================
   Fix: Remove white card wrapper caused by
   theme's bgfill + shadowinner on blog-out
======================================== */
.mvp-main-blog-out.bgfill,
.mvp-main-blog-out.shadowinner,
.mvp-main-blog-out.bgfill.shadowinner {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-top: 0 !important;
}

/* ========================================
   Mobile-friendly hero section (.mvp-feat6-wrap)
======================================== */
@media screen and (max-width: 767px) {
  #mvp-feat6-wrap {
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #mvp-feat6-main {
    width: 100% !important;
    overflow: hidden !important;
  }

  #mvp-feat6-img {
    width: 100% !important;
    min-width: 100% !important;
  }

  #mvp-feat6-text {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    padding: 14px !important;
    background: rgba(0, 0, 0, 0.45) !important;
  }

  #mvp-feat6-text h2 {
    font-size: 1.9rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  #mvp-feat6-text p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-top: 10px !important;
  }
}

/* Hide Mobile Share Bar */
@media screen and (max-width: 1003px) {
  #mvp-soc-mob-wrap {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  #mvp-feat6-text h2 {
    font-size: 1.5rem !important;
  }

  #mvp-feat6-text p {
    font-size: 0.92rem !important;
  }
}