html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
button {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 100%;
  line-height: 1.5;
  vertical-align: baseline;
  background-color: transparent;
  border: 0;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}
.app {
  display: flex;
  height: 100%;
}

.header {
  position: fixed;
  z-index: 3;
  width: 100%;
  background-color: var(--background-primary-color);
  border-bottom: 2px solid var(--border-primary-color);
}

.header__container {
  /* max-width: 1440px; */
  height: var(--app-header-height);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.header__section {
  flex: 1;
  display: flex;
  align-items: center;

  &:nth-child(1) {
    justify-content: flex-start;
  }

  &:nth-child(2) {
    justify-content: center;
  }

  &:nth-child(3) {
    justify-content: flex-end;
    gap: 8px
  }
}

.header__title {
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__channel {
  border-radius: 28px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s;

  &:hover {
    background-color: var(--background-highlight-color);
  }
}

.header__channel .channel__branding {
  gap: 8px;
}

.header__channel .channel__title {
  font-size: 16px;
}

.header__channel .channel__picture {
  width: 28px;
  height: 28px;
}

.header__extension-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--text-primary-color);
  color: var(--background-primary-color);
  border-radius: 20px;
  transition: background-color .2s;

  &:hover {
    background-color: color-mix(in srgb, var(--text-primary-color) 84%, transparent)
  }
}

.account__button {
  position: relative;
}

.account__email {
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s;
  color: var(--text-secondary-color);

  &:hover {
    background-color: var(--background-highlight-color);
  }
}

.account__menu {
  background-color: var(--background-secondary-color);
  border: 1px solid var(--border-primary-color);
  padding: 16px;
  border-radius: 8px;
  position: absolute;
  top: 32px;
  left: 0;
  display: none;
  width: 100%;
}

.account__menu--active {
  display: block;
}

.account__menu-item {
  display: flex;
  align-items: center;
  gap: 4px;

  &:hover {
    color: var(--accent-primary-color);
  }
}

.main {
  width: 100%;
  padding-top: var(--app-header-height);
  padding-left: calc(var(--app-navigation-width) + 32px);
}

.main__title {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main__title-badge {
  background-color: var(--background-secondary-color);
  color: var(--text-secondary-color);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 14px;
  margin-left: 8px;
}

.main__notice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-primary-color);
  color: var(--text-primary-color);
  margin-bottom: 32px;
  width: 720px;
}

.main__success {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--success-primary-color) 30%, transparent);
  color: var(--success-primary-color);
  margin-bottom: 32px;
  width: 720px;
}
.home {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.home__title {
  font-weight: 800;
  font-size: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home__logo {
  width: 96px;
  height: 96px;
}

.home__cta {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 40px;
  font-size: 20px;
  line-height: 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color .2s;
  text-decoration: none;

  &:hover {
    background-color: #000;
  }
}
.channel__navigation {
  position: fixed;
  z-index: 2;
  height: 100vh;
  padding-top: var(--app-header-height);
  border-right: 2px solid var(--border-primary-color);
  background-color: var(--background-primary-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channel__navigation-section-group {
  display: flex;
  flex-direction: column;
}

.channel__navigation-section {
  padding: 16px;
  padding-top: 0px;

  &:first-child {
    padding-top: 16px;
  }

  &.channel__navigation-section--divider {
    padding-top: 16px;
    border-top: 2px solid var(--border-primary-color);
  }
}

.channel__navigation-title {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary-color);
  margin-bottom: 6px;
  padding-left: 8px;
  padding-top: 8px;
}

.channel__navigation-list {
  width: var(--app-navigation-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
}

.channel__navigation-item {
  display: block;
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 300;
  transition: background-color .2s, color .2s;

  svg {
    color: var(--text-secondary-color);
  }

  &:hover:not(.channel__navigation-item--active) {
    background-color: var(--background-highlight-color);
  }
}

.channel__navigation-item--active {
  background-color: var(--background-secondary-color);
  color: var(--accent-primary-color);
  svg {
    color: var(--accent-primary-color);
  }
  .channel__navigation-item-count {
    color: var(--accent-primary-color);
  }
}

.channel__navigation-item-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel__navigation-item-count {
  font-size: var(--base-font-size);
  color: var(--text-secondary-color);
}

.channel__navigation-link {
  display: flex;
  font-size: var(--base-font-size);
  padding: 6px 12px 6px 8px;
  width: 100%;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
}

.account-subscription {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border-primary-color);
  border-radius: 12px;
  margin-top: 12px;
  font-size: var(--base-font-size);
}

.account-subscription__plan {
  color: var(--text-primary-color);
  background-color: var(--accent-primary-color);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.account-subscription__link {
  text-decoration: underline;
}
.billing {
  padding: 32px;
  width: 980px;
}

.billing__status {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-primary-color);
  background-color: var(--background-secondary-color);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;

  & .button_to {
    display: inline-block;
  }
}

.plans__subtitle {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.plans-intervals {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 10px;
  background-color: var(--background-highlight-color);
}

.plans-interval {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color .2s ease-in-out, background-color .2s ease-in-out;

  &:hover {
    background-color: var(--background-highlight-color);
  }

  &.plans-interval--active {
    color: var(--background-secondary-color);
    background-color: var(--text-primary-color);
  }
}

.plans {
  display: none;
  gap: 32px;

  &.plans--active {
    display: flex;
  }
}

.plan {
  width: 480px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border-primary-color);
  display: flex;
  flex-direction: column;

  & .button {
    width: 100%;
  }
}

.plan__name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.plan__interval {
  color: var(--text-secondary-color);
}

.plan__price {
  font-size: 40px;
  font-weight: 600;

  & .plan__interval {
    font-size: 20px;
  }
}

.plan__hint {
  color: var(--text-secondary-color);
  margin-bottom: 32px;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style-type: none;
  margin-bottom: 24px;
  font-size: 14px;
}

.plan__feature {
  display: flex;
  align-items: center;
  gap: 6px;

  svg path {
    stroke: #ffc201;
  }
}

.subscription {
  padding: 20px;
  border-radius: 12px;
  border: 2px solid var(--border-primary-color);
}

.subscription__links {
  margin-top: 32px;
}

.subscription__link {
  text-decoration: underline;
}
.channel__container {
  position: relative;
  margin: 0 auto;
  display: flex;

  &:has(.comment__container):has(.comment-thread) {
    .feed__container {
      width: calc(100% - 280px);
    }

    .feed__search-form {
      visibility: hidden;
      width: 0px;
    }
  }
}

.feed__container {
  width: 100%;
  padding: 32px;
}

.video-thumbnail {
  width: 60px;
  vertical-align: bottom;
  border-radius: 4px;
  outline: 1px solid rgba(14, 15, 16, .12);
  outline-offset: -1px;
}

.author {
  display: flex;
  align-items: center;
  gap: 8px;

  width: min-content;
  line-height: 20px;
  padding: 4px 6px;
  padding-right: 14px;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;

  color: var(--text-primary-color);
  background-color: color-mix(in srgb, var(--text-primary-color) 10%, transparent);

  &:hover {
    color: var(--accent-primary-color);
    background-color: color-mix(in srgb, var(--accent-primary-color) 20%, transparent);

    .author__score {
      color: var(--accent-primary-color);
    }
  }

  .author__score {
    color: var(--text-secondary-color);
  }
}

.author__image {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.author__rank {
  padding: 0px 6px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--success-primary-color);
  background-color: color-mix(in srgb, var(--success-primary-color) 20%, transparent);

  &.author__rank--1 {
    color: #d4af37;
    background-color: color-mix(in srgb, #d4af37 20%, transparent);
  }

  &.author__rank--2 {
    color: #c0c0c0;
    background-color: color-mix(in srgb, #c0c0c0 20%, transparent);
  }

  &.author__rank--3 {
    color: #cd7f32;
    background-color: color-mix(in srgb, #cd7f32 20%, transparent);
  }
}

.comment__text {
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;

  &:hover {
    color: var(--accent-primary-color);
  }
}

.comment__action {
  display: block;
  padding: 8px;
  border-radius: 50%;
  color: var(--text-secondary-color);
  transition: background-color .2s, color .2s;

  &:hover {
    background-color: var(--border-primary-color);
    color: var(--accent-primary-color);
  }

  & svg {
    display: block;
  }
}

.comment__container {
  position: sticky;
  top: calc(var(--app-header-height));
  height: calc(100vh - var(--app-header-height));
  overflow-y: scroll;
  width: 0;

  &:has(.comment-thread) {
    width: 280px;
    border-left: 2px solid var(--border-primary-color);
  }
}
.channels {
  margin: 0 auto;
  padding: 32px;
}

.channels__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.channel {
  padding: 16px;
  border: 2px solid var(--border-primary-color);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.channel__branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel__picture {
  width: 48px;
  height: 48px;
  border-radius: 100%;
}

.channel__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel__title {
  font-size: 18px;
  font-weight: 500;
}

.channel__description {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary-color);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
}

.channel__import-loader {
  flex: 0 0 content;
  display: flex;
  flex-direction: column;
  gap: 6px;

  & .channel__import-progress-container {
    position: relative;
    height: 24px;
    border: 1px solid var(--border-primary-color);
    border-radius: 32px;
    overflow: hidden;
  }

  & .channel__import-progress {
    position: absolute;
    height: 100%;
    width: 0px;
    transition: width 500ms ease-in-out;
    background-color: color-mix(in srgb, var(--accent-primary-color) 70%, transparent);
  }

  & .channel__import-percent {
    position: relative;
    padding-left: 8px;
    height: 100%;
    color: var(--text-primary-color);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    z-index: 2;
  }
}
.comment-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--background-primary-color);
}

.comment-thread {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-thread__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-thread__title {
  font-size: 16px;
  font-weight: 500;
}

.comment-thread__close-button {
  cursor: pointer;
  &:hover {
    color: var(--accent-primary-color);
  }
}

.comment-thread__comment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
}

.comment-thread__scroll {
  display: none;
}

.comment-thread__body {
  display: flex;
  flex-direction: column;
}

.comment-thread__info-container {
  display: flex;
  align-items: start;
  gap: 8px;
}

.comment-thread__info {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.comment-thread__author-picture {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment-thread__author {
  font-size: var(--base-font-size);
  font-weight: 500;
}

.comment-thread__date {
  font-size: var(--base-font-size);
  font-weight: 300;
  color: var(--text-secondary-color);
}

.comment-thread__message {
  font-size: var(--base-font-size);
  font-weight: 300;
  margin-bottom: 4px;
  a {
    text-decoration: underline;
    color: var(--accent-primary-color);
  }
}

.comment-thread__external-link {
  font-weight: 600;
  font-size: var(--base-font-size);
  text-transform: uppercase;
  color: var(--text-secondary-color);

  &:hover {
    color: var(--accent-primary-color);
  }
}
.connection__container {
  margin: 0 auto;
  padding: 32px;
}

.connection__alert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--accent-primary-color);
  color: var(--accent-primary-color);
  margin-bottom: 32px;
}

.connection__form {
  width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.connection__form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.connection__form-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.connection__form-hint {
  margin-top: 2px;
  font-weight: 300;

  em {
    font-weight: 600;
  }
}

.connection__form-link {
  text-decoration: underline;
}

.connection__form-input {
  background-color: var(--background-primary-color);
  border: 1px solid var(--border-secondary-color);
  padding: 10px 16px;
  outline: none;
  border-radius: 6px;

  &:user-invalid {
    border-color: var(--accent-primary-color);
    color: var(--accent-primary-color);
  }
}

.connection__form-button {
  width: fit-content;
}
.feed__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;

  &.feed__header--search {
    margin-bottom: 3px;
    & .main__title {
      align-self: flex-start;
    }
  }

  & .main__title {
    padding-bottom: 0;
  }
}

.feed__search-form {
  position: relative;
  top: -6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed__search {
  background-color: var(--background-secondary-color);
  border: 1px solid var(--border-secondary-color);
  padding: 10px 16px;
  width: 220px;
  outline: none;
  border-radius: 20px;
  font-size: var(--base-font-size);

  &:focus {
    border: 1px solid color-mix(in srgb, var(--accent-primary-color) 80%, transparent);
  }
}

.feed__search-loader {
  visibility: hidden;
  color: var(--text-secondary-color);
  svg {
    display: block;
  }
}

.feed__select {
  display: none;
}

.feed__datepicker {
  background-color: var(--background-secondary-color);
  border: 1px solid var(--border-secondary-color);
  padding: 8px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;

  input {
    font-size: var(--base-font-size);
    width: 84px;
    background: transparent;
    color: var(--text-primary-color);
    border: none;
  }
}

.feed__datepicker-icon {
  display: block;
  height: 20px;
}

turbo-frame[busy] .feed__search-loader {
  visibility: visible;
}

.download-button, .archive-button {
  position: relative;
  top: 1px;
  margin-left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 300;
  font-size: 14px;
}

.feed__first-comment {
  font-size: 12px;
  line-height: 20px;
  padding: 2px 6px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;

  &.feed__first-comment--true {
    color: #ffc201;
    background-color: color-mix(in srgb, #ffc201 10%, transparent);

    &:hover {
      background-color: color-mix(in srgb, #ffc201 30%, transparent);
    }
  }

  &.feed__first-comment--false {
    color: var(--text-secondary-color);
    background-color: color-mix(in srgb, var(--text-primary-color) 10%, transparent);

    &:hover {
      background-color: color-mix(in srgb, var(--text-primary-color) 30%, transparent);
    }
  }
}

.feed__kind {
  font-size: 12px;
  line-height: 20px;
  padding: 2px 6px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;

  &.feed__kind--first_timer {
    color: #ffc201;
    background-color: color-mix(in srgb, #ffc201 10%, transparent);

    &:hover {
      background-color: color-mix(in srgb, #ffc201 30%, transparent);
    }
  }

  &.feed__kind--comment {
    color: #00dbff;
    background-color: color-mix(in srgb, #00dbff 10%, transparent);

    &:hover {
      background-color: color-mix(in srgb, #00dbff 30%, transparent);
    }
  }

  &.feed__kind--reply {
    color: #bc69f3;
    background-color: color-mix(in srgb, #bc69f3 10%, transparent);

    &:hover {
      background-color: color-mix(in srgb, #bc69f3 30%, transparent);
    }
  }
}

.table-custom {
  display: table;
  width: 100%;
  border-top: 2px solid var(--border-primary-color);
  border-bottom: 0;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  font-size: var(--base-font-size);

  &:has(.table-body .table-row) {
    border-bottom: 2px solid var(--border-primary-color);
  }
}

.table-header {
  display: table-header-group;
  position: sticky;
  left: 0;
  background-color: var(--background-primary-color);

  & .table-column:not(:last-child) {
    border-right: 1px solid var(--border-primary-color);
  }

  & .table-column {
    color: var(--text-secondary-color);
    padding: 8px 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-wrap: nowrap;

    border-bottom: 1px solid var(--border-primary-color);

    & sup {
      text-transform: none;
    }
  }
}

.table-body {
  display: table-row-group;

  & .table-row:not(:last-child) .table-column {
    border-bottom: 1px solid var(--border-primary-color);
  }

  & .table-column:not(:last-child) {
    border-right: 1px solid var(--border-primary-color);
  }

  .table-row {
    transition: background-color .2s;
    &:hover {
      background-color: var(--background-secondary-color);
    }
  }

  & .table-column--rank {
    width: 1%;
    white-space: nowrap;
  }

  & .table-column--comment {
    font-weight: 300;
    font-size: 14px;
  }

  & .table-column--author {
    width: 1%;
    white-space: nowrap;
  }

  & .table-column--video {
    position: relative;
    width: 1%;
    white-space: nowrap;
  }

  & .table-column--kind {
    width: 1%;
    white-space: nowrap;
  }

  & .table-column--total {
    width: 1%;
    white-space: nowrap;
    text-align: right;
  }

  & .table-column--date {
    font-weight: 300;
    width: 1%;
    text-wrap: nowrap;
    text-align: right;
  }

  & .table-column--action {
    padding: 4px;
    width: 1%;
    white-space: nowrap;
    visibility: inherit;
    border-right: 0;
  }
}

.table-footer {
  display: table-footer-group;
}

.table-row {
  display: table-row;
  position: relative;
}

.table-column {
  display: table-cell;
  padding: 8px 12px;
  vertical-align: middle;
  text-align: left;
}

.feed-empty-message {
  display: none;
}

.feed__container:not(:has(.table-custom .table-body .table-row)) .feed-empty-message {
  font-size: 14px;
  display: block;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary-color);
  border-bottom: 2px solid var(--border-primary-color);
}

.tooltip {
  position: absolute;
  visibility: hidden;
  text-align: center;
  border-radius: 8px;
  padding: 4px 8px;
  z-index: 2;
  bottom: 100%;
  right: 0%;
  opacity: 0;
  transition: opacity 0.2s;
  background-color: var(--text-primary-color);
  color: var(--background-secondary-color);
  font-weight: 600;
  overflow-wrap: break-word;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 16px;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--text-primary-color) transparent transparent transparent;
}

.table-column--video:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
.feedback__container {
  margin: 0 auto;
  padding: 32px;
}
.directory__container {
  margin: 0 auto;
  padding: 32px;

  & .ss-main {
    width: 300px;
  }
}

.directory__search-form {
  position: relative;
  top: -6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row__rank--1 {
  background-color: color-mix(in srgb, #d4af37 10%, transparent);

  &:hover {
    background-color: color-mix(in srgb, #d4af37 15%, transparent) !important;
  }

  & .author:hover {
    color: #d4af37;
    background-color: color-mix(in srgb, #d4af37 20%, transparent) !important;
  }
}

.row__rank--2 {
  background-color: color-mix(in srgb, #c0c0c0 10%, transparent);

  &:hover {
    background-color: color-mix(in srgb, #c0c0c0 15%, transparent) !important;
  }

  & .author:hover {
    color: #c0c0c0;
    background-color: color-mix(in srgb, #c0c0c0 20%, transparent) !important;
  }
}

.row__rank--3 {
  background-color: color-mix(in srgb, #cd7f32 10%, transparent);

  &:hover {
    background-color: color-mix(in srgb, #cd7f32 15%, transparent) !important;
  }

  & .author:hover {
    color: #cd7f32;
    background-color: color-mix(in srgb, #cd7f32 20%, transparent) !important;
  }
}


.leaderboard-author__rank {
  margin-left: 2px;
  text-align: center;
  padding: 0px 6px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--success-primary-color);
  background-color: color-mix(in srgb, var(--success-primary-color) 20%, transparent);


  &.leaderboard-author__rank--1 {
    color: #d4af37;
    background-color: color-mix(in srgb, #d4af37 20%, transparent);
  }

  &.leaderboard-author__rank--2 {
    color: #c0c0c0;
    background-color: color-mix(in srgb, #c0c0c0 20%, transparent);
  }

  &.leaderboard-author__rank--3 {
    color: #cd7f32;
    background-color: color-mix(in srgb, #cd7f32 20%, transparent);
  }
}
.onboarding__container {
  padding: 32px;
}

.onboarding__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 48px;

  & em {
    text-decoration: 4px solid underline var(--accent-primary-color);
    text-underline-offset: 8px;
  }
}

.onboarding__subtitle {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

.onboarding__extension {
  position: relative;
  width: 960px;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
}

.onboarding__extension-download {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 24px;
  outline: 1px solid rgba(14, 15, 16, .1);
  outline-offset: -1px;
}

.onboarding__extension-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--background-secondary-color);
  background-color: var(--text-primary-color);

  &:hover {
    background-color: #dadbdd;
  }
}

.onboarding__extension-link-label {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding__extension-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 24px;

  & video {
    display: block;
    width: 100%;
    height: 100%;

  }
}

.channel__onboarding-list {
  width: var(--app-navigation-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px;
}

.channel__onboarding-item {
  display: flex;
  align-items: center;
  gap: 4px;

  &.channel__onboarding-item--pending {
    color: var(--text-secondary-color);
  }

  &.channel__onboarding-item--current {
    color: var(--text-primary-color);
  }

  &.channel__onboarding-item--done {
    color: var(--success-primary-color);
  }

  & .channel__onboarding-step {
    width: 20px;
    height: 20px;
    text-align: center;
  }
}
.report__container {
  margin: 0 auto;
  height: 100%;
  padding: 32px;
}

.report__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;

  & .main__title {
    padding-bottom: 0;
  }
}

.report__types {
  position: relative;
  top: -6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.report__type {
  color: var(--text-primary-color);
  background-color: var(--background-primary-color);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;

  svg {
    color: var(--text-secondary-color);
  }

  &:not(.report__type--active):hover {
    background-color: var(--background-highlight-color);
  }

  &.report__type--active {
    background-color: var(--background-secondary-color);;
    color: var(--accent-primary-color);

    svg {
      color: var(--accent-primary-color);
    }
  }
}

.videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.video {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 2px solid var(--border-primary-color);
  padding: 16px;
  border-radius: 12px;
}

.video__thumbnail-link {
  display: block;
}

.video__thumbnail {
  display: block;
  width: 140px;
  border-radius: 12px;
  outline: 1px solid rgba(14, 15, 16, .12);
  outline-offset: -1px;
}

.video__info {
  display: flex;
  flex-direction: column;
  width: 440px;
}

.video__info-title {
  font-weight: 600;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  display: -webkit-box;
}

.video__info-date {
  color: var(--text-secondary-color);
}

.video__scores {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.video__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--text-secondary-color);
}

.video__score-value {
  font-size: 14px;
  color: var(--text-primary-color);
}

.video__report {
  align-self: flex-start;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 12px;
  margin-top: 6px;
}

.video__report-chart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.video__report-score {
  padding-left: 16px;
  color: var(--text-primary-color);
  font-weight: 600;
  font-size: 16px;
  z-index: 2;
}

.video__report-barchart {
  position: absolute;
  height: 32px;
  border-radius: 32px;
  width: 0%;
  transition: width 1s ease-in-out;
  border: 1px solid color-mix(in srgb, var(--accent-primary-color) 50%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-primary-color) 20%, transparent), color-mix(in srgb, var(--accent-primary-color) 50%, transparent));
}

.video__report-link {
  padding-left: 4px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary-color);

  &:hover {
    color: var(--accent-primary-color);
  }
}

.engagement__header {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-top: 24px;
}

.engagement {
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.engagement__chart {
  width: 90%;
  height: 90%;

  svg text {
    font-family: "Reddit Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
  }
}

.chart__tooltip {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  padding: 12px 16px;
  border-radius: 16px;
  background-color: var(--background-secondary-color);
  color: var(--text-primary-color);

  & .chart__tooltip-label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--text-secondary-color);
  }

  & .chart__tooltip-value {
    color: var(--text-primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  & .chart__tooltip-delta {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 400;
    color: #2ba640;
  }

  & .chart__tooltip-videos {
    display: flex;
    align-items: center;
    gap: 6px;

    & li img {
      width: 60px;
      border-radius: 6px;
    }
  }
}
.settings__container {
  margin: 0 auto;
  padding: 32px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
}

body {
  font-family: "Reddit Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  background-color: var(--background-primary-color);
  color: var(--text-primary-color);
}

textarea, input {
  font-family: "Reddit Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  color: var(--text-primary-color);
  outline: none;

  &::placeholder {
    color: var(--text-secondary-color);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.button {
  border-radius: 12px;
  background-color: var(--accent-primary-color);
  color: var(--text-primary-color);
  padding: 12px 20px;
  transition: background-color .2s;
  cursor: pointer;
  border: none;

  &:hover {
    background-color: color-mix(in srgb, var(--accent-primary-color) 60%, transparent);
  }
}

.form {
  width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  & .ss-main {
    --ss-border-radius: 12px;
    --ss-bg-color: var(--background-primary-color);

    width: 720px;

    & .ss-single {
      font-size: 14px;
    }

    &.ss-open-below {
      --ss-border-radius: 4px;
      background-color: var(--background-primary-color);
    }
  }

  & .ss-content {
    & .ss-list .ss-option {
      font-size: 14px;
    }

    & .ss-list .ss-option:not(.ss-disabled).ss-selected {
      background-color: var(--background-primary-color);
    }

    .ss-list .ss-option:hover, .ss-list .ss-option.ss-highlighted {
      background-color: var(--background-primary-color);
    }
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-hint {
  margin-top: 2px;
  font-weight: 300;

  em {
    font-weight: 600;
  }
}

.form-link {
  text-decoration: underline;
}

.form-input, .form-textarea {
  background-color: var(--background-primary-color);
  border: 1px solid var(--border-secondary-color);
  padding: 10px 16px;
  outline: none;
  border-radius: 6px;

  &:user-invalid {
    border-color: var(--accent-primary-color);
    color: var(--accent-primary-color);
  }
}

.form-textarea {
  min-height: 200px;
}

.form-button {
  width: fit-content;

  &[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.form-select {
  display: none;
}

.button--secondary {
  border-radius: 12px;
  color: var(--text-secondary-color);
  transition: background-color .2s;
  cursor: pointer;

  &:hover {
    color: var(--text-primary-color);
  }
}

.ss-main {
  transition: background .2s;
  width: 164px;

  &.feed__select--large {
    width: 200px;
  }

  &:focus {
    box-shadow: none;
  }

  &.ss-open-below {
    --ss-border-radius: 12px;
    background-color: var(--background-secondary-color);
  }

  & .ss-values .ss-single {
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    display: -webkit-box;
  }
}

.ss-single {
  font-size: var(--base-font-size);

  &.feed__search-placeholder {
    font-size: var(--base-font-size);
    color: var(--text-secondary-color);
    font-weight: 400;
  }
}

.ss-content {
  transition: opacity var(--ss-animation-timing);

  & .ss-search {
    font-size: var(--base-font-size);
    --ss-border-radius: 20px;
  }

  & .ss-search input {
    font-size: var(--base-font-size);
    padding: var(--ss-spacing-s) var(--ss-spacing-m);
  }

  & .ss-search input:focus {
    box-shadow: none;
    border: 1px solid color-mix(in srgb, var(--accent-primary-color) 80%, transparent);
  }

  & .ss-list .ss-option {
    color: var(--text-primary-color);
    font-size: var(--base-font-size);
  }

  & .ss-list .ss-option:not(.ss-disabled).ss-selected {
    color: var(--text-primary-color);
    background-color: color-mix(in srgb, var(--accent-primary-color) 30%, transparent);
  }

  .ss-list .ss-option:hover, .ss-list .ss-option.ss-highlighted {
    color: var(--text-primary-color);
    background-color: var(--background-highlight-color);
  }
}

.sdp-cal {
  top: 40px;
  left: 0px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --accent-primary-color: #ff4e45;
  --success-primary-color: #2ba640;

  --text-primary-color: #fff;
  --text-secondary-color: rgba(229, 231, 235, 0.6);
  --background-primary-color: #1f1f22;
  --background-secondary-color: #0f0f12;
  --background-tertiary-color: #2f2f32;
  --background-highlight-color: rgba(229, 231, 235, 0.1);
  --border-primary-color: rgba(231, 229, 235, 0.1);
  --border-secondary-color: rgba(231, 229, 235, 0.15);

  --app-header-height: 60px;
  --app-navigation-width: 240px;

  --base-font-size: 13px;
}


.ss-main {
  --ss-font-color: var(--text-primary-color);
  --ss-border-color: var(--border-secondary-color);
  --ss-border-radius: 20px;
  --ss-bg-color: var(--background-secondary-color);
  --ss-spacing-s: 6px;
  --ss-spacing-m: 8px;
  --ss-spacing-l: 10px;
  --ss-main-height: 38px;
}

.ss-content {
  --ss-bg-color: var(--background-secondary-color);
  --ss-border-color: var(--border-secondary-color);
  --ss-border-radius: 8px;
  --ss-font-color: var(--text-primary-color);
  --ss-highlight-color: color-mix(in srgb, var(--accent-primary-color) 80%, transparent);
  --ss-spacing-s: 6px;
  --ss-spacing-m: 8px;
  --ss-spacing-l: 10px;
}

.sdp-cal {
  --sdp-background: var(--background-secondary-color);
  --sdp-border: var(--border-secondary-color);
  --sdp-selected: var(--accent-primary-color);
  --sdp-icon: var(--text-primary-color);
  --sdp-nav-button-background: var(--background-secondary-color);
  --sdp-nav-button-background-hover: var(--background-primary-color);
  --sdp-disabled: var(--text-secondary-color);
}
