/* Trang chủ — nút "Plugin Chỉnh Màu" ở Hero và khối giới thiệu Plugin (23/10/2026).
   Cụm 3 thẻ cửa sổ dùng chung css/grade-engine/deck.css + js/ge-deck.js với Hero trang Plugin;
   file này chỉ lo chỗ đặt, nền và chữ của khối trên trang chủ. */

/* ---------- Hero: thêm nút Plugin Chỉnh Màu (đỏ, phát sáng); Khám phá LUT lùi xuống ô thứ hai, không còn đỏ ---------- */
.hero-bottom { width: min(100%, 996px); }
.round-link.hero-plugin-link {
  box-shadow: 0 0 0 1px rgba(255, 98, 104, .55), 0 0 22px rgba(216, 24, 32, .6), 0 0 52px rgba(216, 24, 32, .32);
}
.round-link.hero-plugin-link:hover { box-shadow: 0 0 0 1px rgba(255, 120, 126, .75), 0 0 28px rgba(237, 27, 36, .75), 0 0 64px rgba(237, 27, 36, .42); }
/* Máy tính bảng: 4 nút thành lưới 2 × 2 thay vì tràn ngang. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-actions { flex-wrap: wrap; max-width: 600px; }
  .hero-actions .round-link { width: calc(50% - 6px); }
}

/* ---------- Khối giới thiệu Plugin ---------- */
/* Nền trong suốt: khối này nằm trong .home-dark, nền tối/đỏ chung do css/trang-chu-nen-toi.css lo (23/10/2026). */
.home-plugin { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 10vw, 150px) 0 clamp(96px, 10vw, 150px); background: transparent; color: #fff; scroll-margin-top: 92px; }
.home-plugin-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
.home-plugin-copy { min-width: 0; }
.home-plugin-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #fff; }
.home-plugin-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(216, 24, 32, .9); }
.home-plugin h2 { margin: 0; font-size: clamp(48px, 5.6vw, 88px); line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
.home-plugin h2 span { display: block; }
.home-plugin h2 span + span { margin-top: .12em; font-size: .62em; letter-spacing: .02em; color: #f2f0ea; }
.home-plugin-lead { max-width: 520px; margin: 26px 0 0; color: #b4b4b4; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.home-plugin-apps { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.home-plugin-apps li { display: inline-flex; align-items: center; gap: 10px; color: #d7d7d7; font-size: 13px; font-weight: 700; }
.home-plugin-apps img { display: block; width: 34px; height: 34px; }
/* Logo phát sáng theo màu từng phần mềm — cùng công thức với logo trang Plugin (css/grade-engine/trang-plugin.css):
   box-shadow trên ảnh bo góc, KHÔNG dùng filter drop-shadow (Safari iPhone cắt quầng thành khối vuông khi cuộn). */
.home-plugin-apps img { border-radius: 22%; }
.home-plugin-apps .is-davinci img { box-shadow: 0 0 8px rgba(245, 120, 50, .8), 0 0 20px rgba(245, 28, 39, .48); }
.home-plugin-apps .is-premiere img { box-shadow: 0 0 8px rgba(45, 120, 255, .88), 0 0 20px rgba(120, 60, 255, .55); }
/* Final Cut: quầng dựng sẵn bám theo hình cái clapper (giống bản drop-shadow cũ), đặt sau logo — box-shadow theo
   khung ảnh để hở một vòng nền tối vì hình không lấp kín khung. Cùng ảnh quầng với trang Plugin; lề quầng = 92.31%
   cỡ logo (34px). Rê chuột chuyển mờ sang quầng sáng hơn. */
.home-plugin-apps .is-finalcut a { position: relative; isolation: isolate; }
.home-plugin-apps .is-finalcut a::before, .home-plugin-apps .is-finalcut a::after {
  content: ""; position: absolute; z-index: -1; left: calc(34px * -.9231); top: calc(50% - 17px - 34px * .9231);
  width: calc(34px * 2.8462); height: calc(34px * 2.8462); pointer-events: none;
  background: url("/assets/grade-engine/platforms/final-cut-pro-glow.webp?v=1") center / 100% 100% no-repeat; transition: opacity .28s ease;
}
.home-plugin-apps .is-finalcut a::after { background-image: url("/assets/grade-engine/platforms/final-cut-pro-glow-hover.webp?v=1"); opacity: 0; }
/* Ba logo bấm sang mục Báo giá trang Plugin (25/10/2026). */
.home-plugin-apps a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 10px; transition: color .2s ease; }
.home-plugin-apps a:hover, .home-plugin-apps a:focus-visible { color: #fff; }
.home-plugin-apps a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.home-plugin-apps .is-finalcut a:hover::before, .home-plugin-apps .is-finalcut a:focus-visible::before { opacity: 0; }
.home-plugin-apps .is-finalcut a:hover::after, .home-plugin-apps .is-finalcut a:focus-visible::after { opacity: 1; }
.home-plugin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.home-plugin-actions .round-link { width: auto; min-width: 210px; justify-content: center; gap: 10px; padding: 0 26px; white-space: nowrap; }
.round-link.home-plugin-main { box-shadow: 0 0 0 1px rgba(255, 98, 104, .55), 0 0 22px rgba(216, 24, 32, .55), 0 0 52px rgba(216, 24, 32, .3); }
.home-plugin-icon { flex: none; width: 18px; height: 18px; }
.home-plugin-media { min-width: 0; }
/* Cụm thẻ: khung có tỉ lệ cố định (deck.css) nên giữ chỗ sẵn, không giật trang khi ảnh tải. */
.home-plugin .ge-deck-wrap { --ge-dw: 100%; }
/* Cụm thẻ to hơn trên máy tính (25/10/2026): khung rộng thêm --hp-l về bên trái (lấn khoảng trống giữa chữ và ảnh,
   luôn chừa ≥ 40px tới cột chữ) và --hp-r về bên phải (tới cách mép màn hình 32px khi màn rộng hơn khung 1380px).
   Từ 1280px chia lại cột .82 / 1.18 cho ảnh rộng thêm; hẹp hơn thì giữ .9 / 1.1 vì cột chữ hẹp làm hai nút và
   hàng logo xuống dòng. Đo: ảnh to thêm ~13% ở 1280px, ~19% ở 1512px, ~31% ở 1680px, ~48% ở 1920px. */
@media (min-width: 1021px) {
  .home-plugin .ge-deck-wrap { --hp-l: clamp(0px, 6vw - 40px, 56px); --hp-r: max(0px, (100vw - 1380px) / 2 - 32px); --ge-dw: calc(100% + var(--hp-l) + var(--hp-r)); }
  .home-plugin .ge-deck { margin-left: calc(var(--hp-l) * -1); }
}
@media (min-width: 1280px) {
  .home-plugin-inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

@media (max-width: 1020px) {
  .home-plugin-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* Cụm thẻ dưới chữ, rộng chạm hai mép màn hình như Hero trang Plugin trên điện thoại. */
  .home-plugin .ge-deck-wrap { --ge-dw: calc(100% + 48px); }
  .home-plugin .ge-deck { margin-left: -24px; }
}
@media (max-width: 760px) {
  .home-plugin { padding: 40px 0 72px; }
  .home-plugin h2 { font-size: clamp(40px, 12vw, 56px); }
  .home-plugin-lead { margin-top: 20px; font-size: 16px; }
  .home-plugin-apps { margin-top: 22px; }
  .home-plugin-actions { margin-top: 26px; }
  .home-plugin-actions .round-link { width: 100%; max-width: 320px; min-height: 58px; }
  .home-plugin .ge-deck-wrap { --ge-dw: calc(100% + 32px); }
  .home-plugin .ge-deck { margin-left: -16px; }
}
