@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

* { padding: 0; margin: 0; box-sizing: border-box; }
a { text-decoration: none; }
.fa-bars { font-size: 30px; }
.dropdown-menu a { text-decoration: none; color: #333; }
img.lazy { opacity: 0; transition: opacity .3s ease; }
img:not(.lazy) { opacity: 1; }

:root {
  --success-color: #6ab04c;
  --site-color: #f44336;
  --danger-color: #ff0707;
  --main-color: #727475;
  --main-bg-color: #fff;
  --second-bg-color: #f1f1f1;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { border-radius: 10px; box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); }
::-webkit-scrollbar-thumb { box-shadow: inset 0 0 6px rgba(0, 0, 0, .5); border-radius: 10px; }
::-webkit-scrollbar-corner { display: none; }

body {
  background-color: var(--main-bg-color);
  color: var(--main-color);
  font-family: "Rubik", sans-serif;
}

/***** NavBar ****/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--main-bg-color);
  position: sticky;
  box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, .12);
  padding: 5px 15px;
  font-size: 22px;
  top: 0;
  z-index: 100;
}
.navbar > div { display: flex; align-items: center; }
.navbar .bars, .mode, .notification { margin-right: 20px; cursor: pointer; }
.logo { width: 50px; }
.avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-top: 5px; }
.site-title {
  margin: 10px 0;
  font-size: 25px;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
}
.site-title span { color: #ff0000; }

/* DropMenu */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
  background-color: var(--main-bg-color);
  width: 200px;
  border-radius: 7px;
  display: none;
}
.dropdown-menu.active { display: block; }
.dropdown-menu.setting { width: 200px; }
.dropmenu-content { max-height: 400px; overflow-y: auto; }
.dropdown-menu li,
.dropdown-menu .item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--second-bg-color);
  cursor: pointer;
  font-size: 15px;
}
.dropdown-menu li:hover,
.dropdown-menu .item:hover { background-color: var(--second-bg-color); }
.dropdown-menu .item a { display: block; width: 100%; }
.dropdown-menu .item span { margin-right: 20px; }

/*  Wrapper  */
.content .wrapper { width: 100%; padding: 10px; background-color: var(--second-bg-color); overflow: hidden; }

/* Forms / tables */
.upload-text {
  margin: 0 auto;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  margin-bottom: 20px;
  text-align: center;
}
.button55 {
  background-color: #2ecc71; color: white; padding: 15px 30px; font-size: 15px;
  border: none; border-radius: 30px; cursor: pointer; width: 100%;
  font-weight: bold; transition: background-color .3s, transform .3s;
}
.button55:hover { background-color: #27ae60; transform: translateY(-2px); }
.button55:disabled { background-color: #ccc; cursor: not-allowed; }

table { width: 100%; margin: 0 auto; border-collapse: collapse; box-shadow: 0 2px 8px rgba(0,0,0,.1); background-color: #fff; border-radius: 10px; overflow: hidden; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #2c3e50; color: #fff; font-weight: bold; }
tr:nth-child(even) { background-color: #f8f9fa; }
tr:hover { background-color: #e9ecef; }
td { color: #34495e; }
@media (max-width: 600px) { table { font-size: 14px; } th, td { padding: 10px; } }

/*  Video container  */
.video-container {
  position: relative;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
.video-image { width: 100%; height: 100%; object-fit: cover; }
.play-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: url('/img/play.png') no-repeat center center; background-size: 64px 64px;
  width: 80px; height: 80px; cursor: pointer;
}
.video-controls {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 40px;
  background: rgba(0, 0, 0, 0.6); display: flex; align-items: center;
  justify-content: space-between; padding: 0 10px;
}
.progress-bar { flex-grow: 1; height: 5px; background: #fff; margin: 0 10px; cursor: pointer; }
.progress-bar-fill { width: 1.8%; height: 100%; background: #f00; }
.video-volume { color: #fff; }
.control-button { width: 20px; height: 20px; background: #fff; border-radius: 50%; cursor: pointer; }
.video-duration { color: #fff; font-size: 14px; padding-left: 5px; }
.loading-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); display: none; justify-content: center; align-items: center;
}
.loading-spinner {
  border: 8px solid rgba(255, 255, 255, 0.3); border-top: 8px solid #fff;
  border-radius: 50%; width: 70px; height: 70px; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Card section */
.card-section { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 100%; margin: auto; }
.card { display: flex; align-items: center; background-color: #fff; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,.1); padding: 20px; justify-content: space-between; }
.card-h2 { text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,.1); padding: 10px; background-color: #fff; border-radius: 10px; margin-bottom: 10px; }
.view-info { text-align: right; display: flex; flex-direction: column; }
.number { font-size: 30px; font-weight: bold; margin: 0; }

/*  ads buttons  */
.btn55 {
  display: inline-block; background-color: #008cba; color: #fff; font-weight: bold;
  text-align: center; text-decoration: none; border-radius: 5px; padding: 10px 25px;
  margin-top: 10px; margin-bottom: 20px; font-size: 18px; border: none;
}
.btn56 {
  display: inline-block; background-color: green; color: #fff; font-weight: bold;
  text-align: center; text-decoration: none; border-radius: 5px; padding: 10px 25px;
  margin-bottom: 20px; font-size: 18px; border: none;
}
.btn56:hover { background-color: red; transform: scale(1.05); }
.btn55:hover { background-color: #005f75; transform: scale(1.05); }
.btn55:active { background-color: #003c4f; }

/* Pagination */
.pagination { display: flex; justify-content: center; margin: 20px; flex-wrap: wrap; }
.pagination a {
  display: inline-block; padding: 4px 9px; margin: 0 1px; border: 1px solid #ddd;
  border-radius: 5px; text-decoration: none; color: #fff; background-color: #2c3e50;
}
.pagination a.active { background-color: #2ecc71; color: #fff; border-color: #2ecc71; }
.pagination a:hover { background-color: #2ecc71; color: #fff; }

/* Form card */
.form-card {
  width: 100%; max-width: 600px; margin: 0 auto; padding: 30px;
  border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,.1); background-color: #fff;
}
.form-control { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ced4da; border-radius: 5px; box-sizing: border-box; }
.card-title { text-align: center; margin-bottom: 30px; font-size: 24px; color: #F37100; }
.form-card p { margin-bottom: 15px; color: #000; }
.form-card a { text-decoration: none; color: #007bff; }
.form-card a:hover { text-decoration: underline; }

/* Buttons */
.btn-primary {
  width: 100%; background-color: #138C69; color: #fff; padding: 12px; border: none;
  border-radius: 5px; cursor: pointer; font-size: 18px; font-weight: bold;
}
.btn-primary:hover { background-color: #0F936C; color: #fff; }

/* Share buttons */
.share-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 10px; }
.share-button {
  display: flex; justify-content: center; align-items: center; height: 40px;
  border: none; border-radius: 4px; color: #fff; font-size: 20px; text-decoration: none;
  cursor: pointer; transition: background-color .3s ease;
}
.share-button i { margin-right: 5px; }

/* Layout */
.row { max-width: 900px; overflow: hidden; margin: 0 auto; padding: 0 10px; }
.main-content { border-radius: 8px; width: 100%; }
.related-post { border-radius: 8px; width: 100%; margin: 20px 0; }

/**** Alink *****/
.alink { width: 56%; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.alink-title { width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.links { margin-top: 5px; margin-bottom: 10px; }

.tweet { background-color: #fff; border-radius: 12px; box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); padding: 15px; margin: 15px 0; }
.tweet-title { background-color: #fff; border-radius: 12px; box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); padding: 15px; margin: 15px 0; }
.tweet p { margin-bottom: 10px; color: #000; text-align: justify; font-size: 16px; }
.tweet-header { display: flex; align-items: center; margin-bottom: 15px; }
.profile-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid #ddd; }
.tweet-info h4 { font-size: 18px; margin: 0; color: #333; display: flex; align-items: center; }
.tweet-info h4 i { margin-right: 8px; color: #007778; }
.tweet-info p { font-size: 14px; color: #000; margin: 5px 0 0; }
.tweet-content h2 { font-size: 22px; color: #333; margin-bottom: 20px; }
.tweet-content img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 10px; aspect-ratio: 16/9; display: block; object-fit: cover; max-width: 640px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); }
.tweet-content p { word-wrap: break-word; white-space: normal; }
.actions button { margin-top: 15px; background-color: transparent; border: none; font-size: 14px; cursor: pointer; font-weight: bold; }
.share-btn, .love-btn, .telegram-btn { margin-left: 30px; }
.love-btn, .views-btn { color: #2c3e50; }
.share-btn { color: #01896A; }
.telegram-btn { color: #1da1f2; }
.actions button:hover { color: #333; }

/**** SideBar ****/
.sidebar-content { border-radius: 12px; margin-bottom: 15px; }
.sidebar h4 { padding: 10px; margin-bottom: 20px; background-color: #2c3e50; color: #fff; font-size: 18px; border-radius: 5px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.tags ul { list-style: none; padding: 10px; margin: 0; }
.tags ul li { margin-bottom: 10px; }
.tags ul li a {
  display: block; width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #2c3e50;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); color: #2c3e50; text-decoration: none;
  background-color: #f9f9f9; transition: all 0.3s ease;
}
.tags ul li a:hover { background-color: #2c3e50; color: #fff; }
.popular-post-box { border: 1px solid #ddd; margin-bottom: 10px; display: flex; align-items: center; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.popular-post-image { flex: 0 0 100px; max-width: 100px; margin-right: 10px; }
.popular-post-image img { width: 100%; height: 75px; border-radius: 5px 0 0 5px; object-fit: cover; }
.popular-post-meta { font-size: small; color: #777; margin-top: 5px; }
.popular-post-meta i { margin-right: 5px; }
.popular-post-title { font-size: 14px; margin: 0; }

@media (min-width: 720px) {
  .popular-post-image { flex: 0 0 70px; max-width: 70px; margin-right: 10px; }
  .popular-post-image img { width: 100%; height: 50px; border-radius: 5px 0 0 5px; }
  .popular-post-title { font-size: 13px; }
  .sidebar .popular-post-meta { display: none; }
}

@media (min-width: 768px) {
  .main-content { width: 68%; float: left; }
  .sidebar { width: 30%; float: right; padding-left: 0; margin-top: 15px; }
  .action-buttons { display: flex; align-items: center; }
  .action-buttons button { margin: 0 5px; padding: 8px 16px; background-color: #f1f1f1; border: none; border-radius: 20px; cursor: pointer; }
  .avatar { display: none; }
}

@media (max-width: 767px) {
  .main-content, .sidebar { width: 100%; float: none; }
  .action-buttons { display: none; }
}
@media (max-width: 600px) { .navbar .input-box { display: none; } }

/* Search bar (homepage) */
.search-container {
  display: flex; width: 100%; background-color: #ffffff; border: none;
  border-radius: 0.375rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); overflow: hidden;
}
.search-input { flex: 1; padding: 20px 15px; font-size: 16px; border: none; outline: none; }
.search-input::placeholder { color: #6c757d; }
.search-button {
  background-color: #2c3e50; color: #ffffff; font-weight: bold; padding: 10px 20px;
  border: none; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease;
}
.search-button:hover { background-color: #0056b3; }

.copyright { background-color: #2c3e50; color: #fff; padding: 25px 10px; }
.copyright p { margin: 0; text-align: center; color: #fff; }
.copyright a { color: #fff; }
.ad-footer { text-align: center; padding: 10px; }

/* Login container */
.login-container {
  max-width: 400px; margin: 30px auto; background: white; padding: 30px;
  border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 { text-align: center; margin-bottom: 30px; font-weight: bold; }
.login-container .form-control { border-radius: 25px; }
.login-container .btn-primary { border-radius: 25px; padding: 10px; font-weight: bold; }
.form-group { margin-bottom: 20px; }
.footer-text { text-align: center; margin-top: 30px; font-size: 14px; color: #777; }
.fa-user, .fa-lock { color: #007bff; }
.error-message { color: red; font-weight: bold; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ---- Ad units / analytics slots (Admin -> Ads & Links) ---- */
.ad-unit { text-align: center; margin: 10px 0; overflow: hidden; }
.ad-header { margin: 12px 0; }
.ad-infeed { margin: 15px 0; }
.ad-sidebar { margin-bottom: 15px; }
