/*====== HOMEPAGE (new design) — used by frontend/index_new.blade.php ======*/
.tk-home {
  --tk-bg: #ffffff;
  --tk-alt-bg: #f6f4f1;
  --tk-text: #1b1b1b;
  --tk-muted: #757575;
  --tk-line: #e6e2dc;
  --tk-radius: 6px;
  background: var(--tk-bg);
  color: var(--tk-text);
}
html[data-theme="dark"] .tk-home {
  --tk-bg: #121212;
  --tk-alt-bg: #1a1a1c;
  --tk-text: #e8e8e8;
  --tk-muted: #9a9a9a;
  --tk-line: #2f2f33;
}

.tk-home a { color: inherit; text-decoration: none; }
.tk-home a:hover { color: var(--tk-accent); }
.tk-home h1, .tk-home h2, .tk-home h3, .tk-home h4 { color: inherit; margin: 0; }

.tk-section { padding: 26px 0; background: var(--tk-bg); }
.tk-alt { background: var(--tk-alt-bg); }
.tk-col { margin-bottom: 22px; }
.tk-ad { text-align: center; padding: 12px 15px; }
.tk-ad img, .tk-side-ad img { max-width: 100%; height: auto; }

/*------ section heading: accent dot + title + rule + "more" ------*/
.tk-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.tk-head h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.tk-head h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tk-accent);
  margin-right: 9px;
  box-shadow: 0 0 0 4px rgba(196, 22, 28, .15);
}
.tk-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tk-line);
  order: 1;
}
.tk-more {
  order: 2;
  font-size: 14px;
  color: var(--tk-muted) !important;
  white-space: nowrap;
}
.tk-more:hover { color: var(--tk-accent) !important; }

/*------ thumbnails (fixed 16:9) ------*/
.tk-thumb { display: block; position: relative; overflow: hidden; border-radius: var(--tk-radius); background: var(--tk-line); }
.tk-ratio { padding-top: 56.25%; }
.tk-ratio img {
  position: absolute; inset: 0; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.tk-thumb:hover img { transform: scale(1.04); }

.tk-play {
  position: absolute; left: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; padding-left: 2px;
}
.tk-play-lg { width: 58px; height: 58px; font-size: 20px; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); background: var(--tk-accent); }

.tk-time { display: inline-block; font-size: 13px; color: var(--tk-muted); margin-top: 6px; }
.tk-time .fa { margin-right: 3px; }
.tk-summary { font-size: 15px; line-height: 1.65; color: var(--tk-muted); margin: 8px 0 0; }

/*------ lead story ------*/
.tk-lead-body { padding-top: 14px; }
.tk-kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--tk-accent) !important;
  margin-bottom: 6px;
}
.tk-lead-title { font-size: 30px; line-height: 1.3; font-weight: 700; }
.tk-lead-sm .tk-lead-title { font-size: 22px; margin-top: 12px; }

/*------ cards ------*/
.tk-card-title { font-size: 17px; line-height: 1.45; font-weight: 600; margin-top: 10px !important; }
.tk-card-stack + .tk-card-stack { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tk-line); }
.tk-row-4 { border-top: 1px solid var(--tk-line); padding-top: 22px; }

/*------ latest / popular tabs ------*/
.tk-tabs { border: 1px solid var(--tk-line); border-radius: var(--tk-radius); overflow: hidden; height: 100%; }
.tk-tab-head { display: flex; }
.tk-tab-head button {
  flex: 1;
  border: 0;
  background: var(--tk-alt-bg);
  color: var(--tk-muted);
  padding: 11px 6px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.tk-tab-head button.active { background: var(--tk-bg); color: var(--tk-accent); border-bottom-color: var(--tk-accent); }
.tk-tab-pane { display: none; list-style: none; margin: 0; padding: 4px 14px; max-height: 470px; overflow-y: auto; }
.tk-tab-pane.active { display: block; }

.tk-feed li { padding: 11px 0 11px 14px; border-bottom: 1px dashed var(--tk-line); position: relative; }
.tk-feed li:last-child { border-bottom: 0; }
.tk-feed li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tk-accent);
}
.tk-feed-title { display: block; font-size: 15px; line-height: 1.45; }
.tk-feed .tk-time { margin-top: 3px; font-size: 12px; }

.tk-rank li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--tk-line); font-size: 15px; line-height: 1.45; }
.tk-rank li:last-child { border-bottom: 0; }
.tk-rank-no { flex: 0 0 auto; font-size: 26px; line-height: 1; font-weight: 700; color: var(--tk-accent); opacity: .85; min-width: 26px; }

/*------ thumbnail list ------*/
.tk-media-list { list-style: none; margin: 0; padding: 0; }
.tk-media-list li { display: flex; gap: 14px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--tk-line); }
.tk-media-list li:last-child { border-bottom: 0; margin-bottom: 0; }
/* thumb is 38% of the row; padding % is relative to the row, so 38% x 9/16 keeps 16:9 */
.tk-media-list .tk-thumb { flex: 0 0 38%; max-width: 38%; height: 0; padding-top: 0; padding-bottom: 21.375%; }
.tk-media-list h4 { font-size: 16px; line-height: 1.45; font-weight: 600; }

/*------ text link lists ------*/
.tk-inline-list { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--tk-line); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.tk-inline-list li { font-size: 15px; position: relative; padding-left: 14px; }
.tk-inline-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--tk-accent); }
.tk-inline-list-v { flex-direction: column; border-top: 0; padding-top: 0; }

/*------ poll widget ------*/
.tk-widget { border: 1px solid var(--tk-line); border-radius: var(--tk-radius); overflow: hidden; background: var(--tk-bg); }
.tk-widget-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--tk-accent); color: #fff; font-weight: 600; }
.tk-widget-head a { color: #fff !important; font-size: 13px; font-weight: 400; text-decoration: underline; }
.tk-poll { padding: 14px; }
.tk-poll-q { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.tk-poll-opt { display: block; padding: 8px 10px; border: 1px solid var(--tk-line); border-radius: var(--tk-radius); margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.tk-poll-opt input { margin-right: 6px; }
.tk-poll-actions { display: flex; gap: 8px; margin-top: 6px; }
.tk-btn { flex: 1; border: 1px solid var(--tk-accent); background: var(--tk-accent); color: #fff; border-radius: var(--tk-radius); padding: 7px 10px; font-size: 14px; cursor: pointer; }
.tk-btn-ghost { background: transparent; color: var(--tk-accent); }
.tk-btn:disabled { opacity: .6; cursor: default; }
.tk-poll .poll-message { color: var(--tk-accent); font-size: 13px; margin-top: 6px; }
.tk-poll .poll-result { margin-top: 8px; }

/*------ video band ------*/
.tk-video { background: #16181d !important; color: #f1f1f1; }
.tk-video .tk-head::after { background: rgba(255, 255, 255, .15); }
.tk-video .tk-more { color: #b9b9b9 !important; }
.tk-video-main h3 { font-size: 22px; line-height: 1.4; margin-top: 12px !important; color: #fff; }
.tk-video-small h4 { font-size: 15px; line-height: 1.45; margin-top: 8px !important; color: #e6e6e6; }
.tk-video a:hover h3, .tk-video a:hover h4 { color: #fff; text-decoration: underline; }

/*------ photo cards ------*/
.tk-photo { display: block; position: relative; }
.tk-photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  border-radius: 0 0 var(--tk-radius) var(--tk-radius);
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff; font-size: 15px; font-weight: 600;
}

/*------ responsive ------*/
@media (max-width: 991px) {
  .tk-lead-title { font-size: 24px; }
  .tk-tab-pane { max-height: 380px; }
}
@media (max-width: 575px) {
  .tk-section { padding: 18px 0; }
  .tk-head h2 { font-size: 19px; }
  .tk-lead-title { font-size: 21px; }
  .tk-card-title { font-size: 15px; }
  .tk-media-list h4 { font-size: 15px; }
  .tk-col { margin-bottom: 16px; }
}
