/*
Theme Name: CineVood
Theme URI: https://cinevood.net
Author: CineVood
Description: A movie download and streaming WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cinevood
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a7abf;
  --blue-dark:  #155f96;
  --blue-nav:   #1565a8;
  --bg:         #111111;
  --bg-card:    #1a1a1a;
  --bg-header:  #0d0d0d;
  --text:       #e0e0e0;
  --text-muted: #999;
  --accent:     #f5a623;
  --red:        #e63946;
  --white:      #ffffff;
  --border:     #2a2a2a;
  --font:       'Segoe UI', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* === SITE HEADER === */
#site-header {
  background: var(--bg-header);
  border-bottom: 2px solid var(--blue);
  padding: 12px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo .logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-search {
  flex: 1;
  max-width: 460px;
}

.header-search form {
  display: flex;
}

.header-search input {
  flex: 1;
  padding: 9px 14px;
  background: #222;
  border: 1px solid #333;
  border-right: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
  border-radius: 3px 0 0 3px;
}

.header-search input::placeholder { color: #666; }

.header-search button {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 0 3px 3px 0;
  transition: background .2s;
}

.header-search button:hover { background: var(--blue-dark); }

/* === PRIMARY NAVIGATION === */
#primary-nav {
  background: var(--blue-nav);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: background .15s;
}

.nav-inner a:hover,
.nav-inner a.current { background: rgba(0,0,0,.25); color: #fff; }

.nav-inner .nav-adult {
  background: rgba(255,255,255,.12);
  margin-left: auto;
}

.nav-inner .nav-adult:hover { background: rgba(255,255,255,.22); }

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: #0b4f6c;
  border-top: 1px solid #1a7abf44;
  border-bottom: 1px solid #1a7abf44;
  padding: 7px 16px;
  font-size: 12px;
  text-align: center;
  color: #cce8f8;
}

.announcement-bar a { color: var(--accent); font-weight: 700; }

/* === QUICK FILTER PILLS === */
.quick-filters {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-filters a {
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid transparent;
}

.qf-telegram { background: #229ed9; color: #fff; }
.qf-bollywood { background: transparent; border-color: #555; color: var(--text); }
.qf-bollywood:hover { border-color: var(--blue); color: var(--blue); }
.qf-dubbed { background: transparent; border-color: #555; color: var(--text); }
.qf-dubbed:hover { border-color: var(--blue); color: var(--blue); }
.qf-webseries { background: transparent; border-color: #555; color: var(--text); }
.qf-webseries:hover { border-color: var(--blue); color: var(--blue); }
.qf-adult { background: #c0392b; color: #fff; border-color: #c0392b; }
.qf-adult:hover { background: #a93226; }

/* === MAIN LAYOUT === */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
}

.site-main.full-width {
  grid-template-columns: 1fr;
}

/* === SECTION HEADING === */
.section-heading {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}

/* === MOVIE GRID === */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.movie-card-thumb {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #222;
}

.movie-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.movie-card:hover .movie-card-thumb img { transform: scale(1.05); }

.movie-card-body {
  padding: 8px 10px;
}

.movie-card-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === TRENDING SLIDER === */
.trending-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #222;
}

.trending-slider .movie-card {
  flex: 0 0 140px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 10px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  transition: all .15s;
}

.pagination a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.widget-title {
  background: var(--blue-nav);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
}

.widget-body { padding: 14px; }

/* Sidebar search */
.sidebar-search { display: flex; }
.sidebar-search input {
  flex: 1;
  padding: 8px 12px;
  background: #222;
  border: 1px solid #333;
  border-right: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.sidebar-search button {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

/* Tags cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-cloud a {
  background: #2a2a2a;
  color: var(--text-muted);
  border: 1px solid #333;
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 11px;
  transition: all .15s;
}
.tag-cloud a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Telegram join widget */
.telegram-widget {
  text-align: center;
  padding: 18px 14px;
}
.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #229ed9;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
}
.telegram-btn:hover { background: #1a8abc; color: #fff !important; }

/* Daily file widget */
.daily-file-widget { text-align: center; padding: 10px; }
.daily-file-widget img { border-radius: 4px; margin: 0 auto; }

/* === SINGLE POST PAGE === */
.single-post-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.single-content { min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: #555; }

/* Tags bar on single */
.post-tags-bar {
  background: var(--blue-nav);
  padding: 8px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-tags-bar a {
  font-size: 11px;
  color: #cde;
  background: rgba(0,0,0,.3);
  padding: 2px 8px;
  border-radius: 2px;
}
.post-tags-bar a:hover { color: #fff; }

/* Post title */
.post-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Social share */
.social-share { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  transition: opacity .2s;
}
.social-share a:hover { opacity: .85; color: #fff; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #229ed9; }
.share-facebook  { background: #1877f2; }
.share-twitter   { background: #1da1f2; }
.share-pinterest { background: #e60023; }
.share-email     { background: #555; }

/* Video player */
.video-player-wrap {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  aspect-ratio: 16/9;
}
.video-player-wrap video,
.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Movie info box */
.movie-info-box {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.movie-poster {
  flex-shrink: 0;
  width: 140px;
}
.movie-poster img { border-radius: 4px; border: 2px solid var(--border); }

.movie-details { flex: 1; font-size: 13px; line-height: 2; }
.movie-details .detail-label { color: var(--text-muted); }
.movie-details .detail-value { color: var(--text); }
.movie-details .imdb-rating { color: var(--blue); font-weight: 700; }

/* Plot */
.movie-plot {
  background: #181818;
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

/* Screenshots */
.screenshots-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}
.screenshots-grid img {
  border-radius: 3px;
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Action buttons */
.action-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-how { background: #333; color: #fff; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background .2s; }
.btn-how:hover { background: #444; color: #fff; }
.btn-telegram { background: #229ed9; color: #fff; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background .2s; }
.btn-telegram:hover { background: #1a8abc; color: #fff; }

/* Install app promo */
.app-promo {
  text-align: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 20px;
}
.app-promo-text {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.btn-android {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #222;
  border: 1px solid #333;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color .2s;
}
.btn-android:hover { border-color: var(--blue); color: var(--text); }

/* Download links */
.download-section { margin-bottom: 24px; }

.download-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.download-group:last-child { border-bottom: none; }

.download-title {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;
}

.download-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s;
  cursor: pointer;
}
.btn-dl:hover { opacity: .85; color: #fff; }
.btn-oxxfile    { background: #555; }
.btn-hubcloud   { background: #f5a623; color: #111 !important; }
.btn-hubcloud:hover { color: #111 !important; }
.btn-krakenfiles { background: #f5a623; color: #111 !important; }
.btn-krakenfiles:hover { color: #111 !important; }

/* Audio info */
.audio-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

/* Related posts */
.related-posts { margin-top: 28px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* Comment form */
.comment-form-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.comment-form-heading {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
  color: var(--white);
}
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  background: #1e1e1e;
  border: 1px solid #333;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form textarea:focus,
.comment-form input:focus { border-color: var(--blue); }
.comment-form textarea::placeholder,
.comment-form input::placeholder { color: #555; }

.btn-submit {
  background: #111;
  color: #fff;
  border: 2px solid #333;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  border-radius: 3px;
  align-self: flex-start;
  transition: border-color .2s, background .2s;
}
.btn-submit:hover { border-color: var(--blue); background: var(--blue); }

/* === FOOTER === */
#site-footer {
  background: var(--bg-header);
  border-top: 2px solid var(--blue);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.back-to-top {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.back-to-top:hover { background: var(--blue-dark); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .site-main,
  .single-post-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .header-search { max-width: 100%; width: 100%; order: 3; flex: 0 0 100%; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .post-title { font-size: 17px; }
  .movie-info-box { flex-direction: column; }
  .movie-poster { width: 120px; }
  .nav-inner a { padding: 9px 10px; font-size: 12px; }
}
