/* Oct 2026 tweaks: square media, equal-height cards, brand buttons, drawer footer, product picks */

/* ------------------------------------------------------------ square video / poster edges */
#html .et-ott-card__poster,
#html .et-ott-course__thumb,
#html .et-ott-ep__thumb,
#html .et-ott-eplist__thumb,
#html .et-ott-show__poster img,
#html .et-ch-featured__thumb,
#html .et-ch-card__thumb,
#html .et-ch-card--spark .et-ch-card__thumb,
#html .et-ch-player,
#html .et-ottx-card__frame,
#html .etm-card:not(.is-round) .etm-card__art,
#html .etm-card:not(.is-round) .etm-cover,
#html .etm-hero:not(.is-round) .etm-hero__art,
#html .etm-hero:not(.is-round) .etm-cover,
#html .related-video-wrapper .ra-thumb,
#html .related-article-wrapper .ra-thumb,
#html .popular-articles-wrapper .video-thumb img,
#html .pt_shorts_list .video-thumb,
#html .pt_shorts_list .video-thumb img,
#html .cus_story_slider .video-thumb,
#html .cus_story_slider .video-thumb img,
#html .cus_story_slider .short_vid_thumb,
#html .cus_story_slider img,
#html .pt_upload_vdo_thumb img,
#html .modal .pt_embed_playr iframe {
  border-radius: 0 !important;
}

/* ------------------------------------------------------------ equal card heights in every row */
#html .videos-latest-list > .row,
#html .subscriptions-list.author-list,
#html .articles-content .articles-container,
#html .my_articles_list .row,
#html .pt_history .row,
#html .movies-list .row,
#html .pt_timeline_latest_vids .row,
#html .search-page .row.pt_srch_vids_grid {
  display: flex;
  flex-wrap: wrap;
}
#html .videos-latest-list > .row::before,
#html .videos-latest-list > .row::after,
#html .subscriptions-list.author-list::before,
#html .subscriptions-list.author-list::after,
#html .articles-content .articles-container::before,
#html .articles-content .articles-container::after,
#html .my_articles_list .row::before,
#html .my_articles_list .row::after,
#html .pt_history .row::before,
#html .pt_history .row::after,
#html .movies-list .row::before,
#html .movies-list .row::after,
#html .pt_timeline_latest_vids .row::before,
#html .pt_timeline_latest_vids .row::after {
  display: none;
}
#html .videos-latest-list > .row > [class*="col-"],
#html .subscriptions-list.author-list > [class*="col-"],
#html .articles-content .articles-container > [class*="col-"],
#html .my_articles_list .row > [class*="col-"],
#html .pt_history .row > [class*="col-"],
#html .movies-list .row > [class*="col-"],
#html .pt_timeline_latest_vids .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  float: none;
}
#html .videos-latest-list > .row > [class*="col-"] > *,
#html .subscriptions-list.author-list > [class*="col-"] > *,
#html .articles-content .articles-container > [class*="col-"] > *,
#html .my_articles_list .row > [class*="col-"] > *,
#html .pt_history .row > [class*="col-"] > *,
#html .movies-list .row > [class*="col-"] > *,
#html .pt_timeline_latest_vids .row > [class*="col-"] > * {
  flex: 1 1 auto;
}
/* Channel tabs (Videos, Sparks, Playlists, Liked) are a .row inside .videos-latest-list but use equal grid columns */
#html .et-ch-body .videos-latest-list > .row.pt_timeline_vids {
  display: grid;
}
#html .videos-latest-list > .row > .video-latest-list,
#html .subscriptions-list.author-list > .video-latest-list {
  display: flex;
  flex-direction: column;
}
#html .videos-latest-list > .row > :not([class*="col-"]),
#html .subscriptions-list.author-list > :not([class*="col-"]),
#html .articles-content .articles-container > :not([class*="col-"]),
#html .pt_history .row > :not([class*="col-"]) {
  flex: 0 0 100%;
}
/* Slick rows (home rails): every slide as tall as the tallest */
#html .cus_slider .slick-track {
  display: flex !important;
}
#html .cus_slider .slick-slide {
  height: auto !important;
  float: none;
}
#html .cus_slider .slick-slide > div,
#html .cus_slider .slick-slide > div > [class*="col-"],
#html .cus_slider .slick-slide > [class*="col-"] {
  height: 100%;
}
#html .cus_slider .slick-slide .video-list,
#html .cus_slider .slick-slide .video-latest-list {
  height: 100% !important;
  display: flex;
  flex-direction: column;
}
#html .cus_slider .slick-slide .video-list .pt_vid_fixed_height,
#html .cus_slider .slick-slide .video-latest-list .video-info {
  flex: 1 1 auto;
}
/* Grid-based rails and grids already stretch; make the card fill its cell */
#html .et-ott-grid,
#html .et-cat-rail__track,
#html .et-aff-grid,
#html .et-ch-grid {
  align-items: stretch;
}
#html .et-ott-card,
#html .et-ott-course,
#html .et-aff-card,
#html .et-ch-card {
  height: 100%;
}

/* ------------------------------------------------------------ brand buttons: Subscribe, Manage, Explore more */
#html .btn-subscribe,
#html .publisher-subscribe-button .btn-subscribe,
#html .pt_video_info .btn-subscribe,
#html .et-ch-sub .btn-subscribe,
#html .et-ch-sub button:not(.btn-subscribed),
#html .publisher-subscribe-button a.btn-subscribed[href*="video_studio"],
#html .et-ch-sub a.btn-subscribed[href*="video_studio"],
#html .view_more_link a,
#html a.et-explore-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 38px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .32), 0 2px 6px rgba(236, 72, 153, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
#html .btn-subscribe:hover,
#html .et-ch-sub .btn-subscribe:hover,
#html .publisher-subscribe-button a.btn-subscribed[href*="video_studio"]:hover,
#html .et-ch-sub a.btn-subscribed[href*="video_studio"]:hover,
#html .view_more_link a:hover,
#html a.et-explore-btn:hover {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%) !important;
  color: #fff !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(236, 72, 153, .32), 0 4px 10px rgba(99, 102, 241, .25);
}
#html .publisher-subscribe-button a.btn-subscribed[href*="video_studio"] *,
#html .view_more_link a *,
#html a.et-explore-btn * {
  color: #fff !important;
}
/* Already subscribed: soft brand pill (stays readable, not a call to action) */
#html .btn-subscribed:not([href*="video_studio"]),
#html .publisher-subscribe-button .btn-subscribed:not([href*="video_studio"]),
#html .et-ch-sub .btn-subscribed:not([href*="video_studio"]) {
  min-height: 38px;
  padding: 0 20px !important;
  border: 1.5px solid rgba(99, 102, 241, .45) !important;
  border-radius: 999px !important;
  background: rgba(99, 102, 241, .1) !important;
  color: #4F46E5 !important;
  font-weight: 700 !important;
}
#html .btn-subscribed:not([href*="video_studio"]):hover {
  border-color: #EC4899 !important;
  background: rgba(236, 72, 153, .1) !important;
  color: #DB2777 !important;
}
html.et-night .btn-subscribed:not([href*="video_studio"]) {
  color: #C7D2FE !important;
  background: rgba(99, 102, 241, .2) !important;
}

/* ------------------------------------------------------------ side drawer footer links: small and muted */
#html .yp_side_drawer footer.pt_footer,
#html .yp_side_drawer .pt_footer {
  padding: 12px 16px 16px !important;
  border-top: 1px solid var(--et-line, #e5e7eb);
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--et-muted, #6b7280) !important;
}
#html .yp_side_drawer .pt_footer > a:not(.btn) {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: var(--et-muted, #6b7280) !important;
  white-space: nowrap;
}
#html .yp_side_drawer .pt_footer > a:not(.btn):hover {
  color: var(--color-primary, #6366F1) !important;
  text-decoration: underline !important;
}
#html .yp_side_drawer .pt_footer p,
#html .yp_side_drawer .pt_footer .copyright,
#html .yp_side_drawer .pt_footer .et-footer-tagline {
  margin: 8px 0 0 !important;
  font-size: 11.5px !important;
  color: var(--et-muted, #6b7280) !important;
}

/* ------------------------------------------------------------ home: leaderboard above Trending */
.et-home-leader {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}
.et-home-leader .et-ad-slot { margin: 0 auto; }

/* ------------------------------------------------------------ home: products picked for you (6 a row, up to 20) */
.et-aff-reco .title h4 { display: flex; align-items: center; gap: 10px; }
.et-aff-reco__nav { display: inline-flex; gap: 6px; margin-left: auto; }
.et-aff-reco__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #EC4899);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.et-aff-reco__nav-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.et-aff-reco__track {
  --gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * var(--gap)) / 6);
  gap: var(--gap);
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.et-aff-reco__track::-webkit-scrollbar { display: none; }
.et-aff-reco__track .et-aff-card { scroll-snap-align: start; height: 100%; }
.et-aff-reco__track .et-aff-card:hover { transform: none; }
.et-aff-reco__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 2px 0;
  font-size: 12px;
  color: var(--et-muted, #6b7280);
}
@media (max-width: 1280px) { .et-aff-reco__track { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); } }
@media (max-width: 1024px) { .et-aff-reco__track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); } }
@media (max-width: 768px) { .et-aff-reco__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 520px) { .et-aff-reco__track { --gap: 10px; grid-auto-columns: calc((100% - var(--gap)) / 2.2); } }

/* ------------------------------------------------------------ product cards on videos, articles and About: image left, details right */
#html .et-aff-native__head {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  position: static;
}
#html .et-aff-native__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
#html .et-aff-nat {
  flex-direction: row;
  align-items: stretch;
  flex: initial;
  min-height: 132px;
}
#html .et-aff-nat__media {
  flex: 0 0 38%;
  max-width: 132px;
  aspect-ratio: auto;
  min-height: 100%;
  border-right: 1px solid var(--et-line, #e5e7eb);
}
#html .et-aff-nat__media img {
  position: absolute;
  inset: 0;
  padding: 8px;
}
#html .et-aff-nat__body { padding: 10px 12px; gap: 4px; }
#html .et-aff-nat__title { font-size: 14px; }
#html .et-aff-nat__desc { -webkit-line-clamp: 2; font-size: 12.5px; }
#html .et-aff-nat__buy { flex: 0 1 auto; padding: 6px 14px; font-size: 13px; }
@media (max-width: 1100px) {
  #html .et-aff-native__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #html .et-aff-native__list { grid-template-columns: 1fr; }
  #html .et-aff-nat__media { max-width: 116px; }
}
/* Above the channel row on the watch page */
.pt_video_info > .et-aff-native { margin: 14px 0 12px; }
.et-cha-products .et-aff-native { margin: 0; padding: 0; border: 0; background: none; }

/* ------------------------------------------------------------ watch page: tighter gap under the player */
#html .video-player-page .player-video .et-player-shell,
#html .video-player-page .player-video .video-player,
#html .video-player-page .player-video .pt_video_player {
  margin-bottom: 8px;
}
#html .video-player-page > .row > .col-md-8:not(.player-video) {
  margin-top: 0;
}
#html .video-player-page > .row > .col-md-8:not(.player-video) > .content.pt_shadow,
#html .video-player-page .wtch_mv_info_main > .content.pt_shadow {
  margin-top: 4px;
  padding-top: 0;
}
#html .video-player-page .pt_video_info {
  padding-top: 6px !important;
}

/* ------------------------------------------------------------ settings: avatar & banner (channel-style cropper) */
.et-set-media__intro { margin: 0 0 16px; font-size: 14px; color: var(--et-muted, #6b7280); }
.et-set-media__preview {
  position: relative;
  margin-bottom: 18px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  background: var(--et-surface, #fff);
}
#html .et-set-media__banner { border-radius: 0; }
.et-set-media__who { display: flex; align-items: flex-end; gap: 14px; margin-top: -46px; padding: 0 20px 16px; position: relative; }
.et-set-media__avatar { position: relative; flex: 0 0 auto; }
.et-set-media__avatar .et-ch-avatar-img {
  display: block;
  width: 112px;
  height: 112px;
  border: 4px solid var(--et-surface, #fff);
  border-radius: 50%;
  object-fit: cover;
  background: var(--et-surface, #fff);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .15);
}
.et-set-media__avatar .et-ch-edit--avatar { position: absolute; right: 0; bottom: 4px; }
.et-set-media__name { display: flex; flex-direction: column; padding-bottom: 8px; min-width: 0; }
.et-set-media__name strong { font-size: 18px; font-weight: 800; }
.et-set-media__name span { font-size: 13px; color: var(--et-muted, #6b7280); }
.et-set-media__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.et-set-media__tip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 14px;
  background: rgba(99, 102, 241, .04);
}
.et-set-media__tip span { font-size: 13px; color: var(--et-muted, #6b7280); }
.et-set-media__tip .et-ch-btn { margin-top: 4px; }
@media (max-width: 600px) {
  .et-set-media__actions { grid-template-columns: 1fr; }
  .et-set-media__avatar .et-ch-avatar-img { width: 88px; height: 88px; }
  .et-set-media__who { margin-top: -34px; padding: 0 14px 14px; }
}

/* ------------------------------------------------------------ channel playlists tab */
.et-pl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.et-pl-head > span { display: inline-flex; align-items: center; }
#html .et-pl-create {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0 18px !important;
  min-height: 38px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .3);
}
.et-pl-empty__art {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  padding: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(236, 72, 153, .12)) !important;
  color: #6366F1;
  text-align: center;
}
.et-pl-empty__art small { font-size: 12px; color: var(--et-muted, #6b7280); }

/* ------------------------------------------------------------ sign-up: handle preview */
.et-handle-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: -4px 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, .08);
  font-size: 13px;
  color: var(--et-text, #111827);
}
.et-handle-preview[hidden] { display: none; }
.et-handle-preview b { color: #4F46E5; }
.et-handle-preview small { flex-basis: 100%; font-size: 11.5px; color: var(--et-muted, #6b7280); }
html.et-night .et-handle-preview b { color: #A5B4FC; }

/* ------------------------------------------------------------ earn page (my-earnings) */
.et-earn { --earn-grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #EC4899 100%); }
.et-earn-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding: 28px 28px 26px;
  border-radius: 20px;
  background: var(--earn-grad);
  color: #fff;
  overflow: hidden;
}
.et-earn-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.et-earn-hero__copy { position: relative; z-index: 1; flex: 1 1 420px; min-width: 0; }
.et-earn-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
#html .et-earn-hero h1 { margin: 0 0 8px; color: #fff !important; font-size: 32px; font-weight: 800; line-height: 1.15; }
.et-earn-hero p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.55; }
.et-earn-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#html .et-earn-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
#html .et-earn-btn:hover { transform: translateY(-1px); }
#html .et-earn-btn.is-light { background: #fff; color: #4F46E5; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
#html .et-earn-btn.is-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
#html .et-earn-btn.is-ghost:hover { background: rgba(255, 255, 255, .24); }
.et-earn-hero__balance {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  text-align: right;
}
.et-earn-hero__balance small { display: block; font-size: 12.5px; font-weight: 600; opacity: .9; }
.et-earn-hero__balance b { display: block; margin: 4px 0 2px; font-size: 34px; font-weight: 800; line-height: 1.1; }
.et-earn-hero__balance span { font-size: 12.5px; opacity: .85; }

.et-earn .et-rev-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.et-earn .et-rev-card {
  position: relative;
  padding: 16px 16px 16px 66px;
  min-height: 78px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 16px;
  background: var(--et-surface, #fff);
}
.et-earn .et-rev-card small { display: block; color: var(--et-text-secondary, #6b7280); font-size: 12.5px; font-weight: 600; }
.et-earn .et-rev-card b { display: block; margin-top: 3px; color: var(--et-text, #111827); font-size: 22px; font-weight: 800; }
.et-earn .et-rev-card .et-earn-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.et-earn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--earn-grad);
  color: #fff;
  font-style: normal;
}
.et-earn-ico svg { width: 20px; height: 20px; }
.et-earn .et-rev-card.is-wait .et-earn-ico { background: linear-gradient(135deg, #F59E0B, #F97316); }
.et-earn .et-rev-card.is-month .et-earn-ico { background: linear-gradient(135deg, #06B6D4, #6366F1); }
.et-earn .et-rev-card.is-life .et-earn-ico { background: linear-gradient(135deg, #10B981, #06B6D4); }
.et-earn .et-rev-card.is-main { border-color: rgba(99, 102, 241, .45); background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(236, 72, 153, .05)); }
.et-earn .et-rev-card.is-main b { color: #4F46E5; }

.et-earn .et-rev-box { margin: 0 0 16px; padding: 18px; border: 1px solid var(--et-line, #e5e7eb); border-radius: 16px; background: var(--et-surface, #fff); min-width: 0; }
#html .et-earn .et-rev-box h2, #html .et-earn-ways h2 { margin: 0 0 12px; color: var(--et-text, #111827); font-size: 17px; font-weight: 800; }
.et-earn-sub { margin: -6px 0 14px; color: var(--et-text-secondary, #6b7280); font-size: 13px; }
.et-earn-split__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#html .et-earn-split__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#html .et-earn-split__item:hover { border-color: #8B5CF6; box-shadow: 0 6px 18px rgba(99, 102, 241, .14); }
.et-earn-split__ring {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#6366F1 0, #8B5CF6 calc(var(--p) * .5%), #EC4899 calc(var(--p) * 1%), var(--et-line, #e5e7eb) 0);
}
.et-earn-split__ring b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--et-surface, #fff);
  color: #4F46E5;
  font-size: 15px;
  font-weight: 800;
}
.et-earn-split__item strong { display: block; color: var(--et-text, #111827); font-size: 14px; }
.et-earn-split__item small { display: block; margin-top: 2px; color: var(--et-text-secondary, #6b7280); font-size: 12px; line-height: 1.4; }
.et-earn-split__item em { display: inline-block; white-space: nowrap; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(99, 102, 241, .1); color: #4F46E5; font-size: 11.5px; font-style: normal; font-weight: 700; }

.et-earn .et-rev-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.et-earn .et-rev-level { margin: 0 0 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, .07), rgba(236, 72, 153, .05)); }
.et-earn .et-rev-level__head { display: flex; justify-content: space-between; gap: 8px; color: var(--et-text, #111827); font-size: 14px; }
.et-earn .et-rev-level__head span { color: #4F46E5; font-weight: 700; }
.et-earn .et-rev-bar { height: 8px; margin: 8px 0 6px; border-radius: 999px; background: var(--et-line, #e5e7eb); overflow: hidden; }
.et-earn .et-rev-bar i { display: block; height: 100%; border-radius: inherit; background: var(--earn-grad); }
.et-earn .et-rev-level small { color: var(--et-text-secondary, #6b7280); }
.et-earn .et-rev-note { color: var(--et-text, #111827); }
.et-earn .et-rev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.et-earn .et-rev-table th { padding: 8px 10px; border-bottom: 1px solid var(--et-line, #e5e7eb); color: var(--et-text-secondary, #6b7280); font-size: 11.5px; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.et-earn .et-rev-table td { padding: 10px; border-bottom: 1px solid var(--et-line, #e5e7eb); color: var(--et-text, #111827); vertical-align: top; }
.et-earn .et-rev-table tr:last-child td { border-bottom: 0; }
.et-earn .et-rev-table td b { color: #4F46E5; }
.et-earn .et-rev-st.is-0 { color: #b45309; }
.et-earn .et-rev-st.is-1 { color: #059669; }
.et-earn .et-rev-st.is-2 { color: #DC2626; }
.et-earn .et-rev-chart { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-top: 22px; }
.et-earn .et-rev-chart__col { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.et-earn .et-rev-chart__col i { display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #EC4899 0%, #8B5CF6 50%, #6366F1 100%); }
.et-earn .et-rev-chart__col span { margin-bottom: 4px; color: var(--et-text-secondary, #6b7280); font-size: 11px; white-space: nowrap; }
.et-earn .et-rev-chart__col small { margin-top: 6px; color: var(--et-text-secondary, #6b7280); font-size: 12px; font-weight: 600; }

.et-earn-ways { margin: 0 0 24px; }
.et-earn-ways__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
#html .et-earn-way {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--et-line, #e5e7eb);
  border-radius: 16px;
  background: var(--et-surface, #fff);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#html .et-earn-way:hover { transform: translateY(-2px); border-color: #8B5CF6; box-shadow: 0 10px 24px rgba(99, 102, 241, .16); }
.et-earn-way .et-earn-ico { margin-bottom: 6px; }
.et-earn-way strong { color: var(--et-text, #111827); font-size: 14.5px; }
.et-earn-way small { color: var(--et-text-secondary, #6b7280); font-size: 12.5px; line-height: 1.4; }

html.et-night .et-earn .et-rev-card.is-main b,
html.et-night .et-earn .et-rev-level__head span,
html.et-night .et-earn .et-rev-table td b,
html.et-night .et-earn-split__ring b { color: #A5B4FC; }
html.et-night .et-earn-split__item em { color: #C7D2FE; background: rgba(99, 102, 241, .22); }

@media (max-width: 1100px) {
  .et-earn .et-rev-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .et-earn .et-rev-grid, .et-earn-split__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .et-earn-hero { padding: 22px 18px; border-radius: 16px; }
  #html .et-earn-hero h1 { font-size: 26px; }
  .et-earn-hero__balance { width: 100%; text-align: left; }
  .et-earn .et-rev-cards { grid-template-columns: 1fr; }
  .et-earn .et-rev-chart { gap: 4px; }
  .et-earn .et-rev-chart__col span { display: none; }
}