.lnnf {
  --lnnf-bg: #fff;
  --lnnf-card: #f6f7f9;
  --lnnf-text: #12151a;
  --lnnf-muted: #747b85;
  --lnnf-border: #e7e9ed;
  overflow: hidden;
  color: var(--lnnf-text);
  background: var(--lnnf-bg);
  border: 1px solid var(--lnnf-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 25, 35, .08);
  font-family: inherit;
}

/* Izolează lista de regulile globale Foxiz/JNews pentru widgeturi. */
.widget .lnnf__list,
.sidebar-wrap .lnnf__list,
.rb-section .lnnf__list {
  margin: 0;
  padding: 5px 14px;
  list-style: none;
}

.widget .lnnf__item,
.sidebar-wrap .lnnf__item,
.rb-section .lnnf__item {
  margin: 0;
  padding: 0;
}

.lnnf--dark {
  --lnnf-bg: #14171c;
  --lnnf-card: #20242b;
  --lnnf-text: #fff;
  --lnnf-muted: #a6adb7;
  --lnnf-border: #303640;
}

.lnnf__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(115deg, var(--lnnf-accent), #17191e);
}

.lnnf__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: var(--lnnf-accent);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
}

.lnnf__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: lnnf-blink 1.15s steps(1, end) infinite;
}

.lnnf__source {
  overflow: hidden;
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lnnf__logo {
  display: block;
  flex: 0 1 auto;
  margin-left: auto;
  width: auto;
  max-width: 120px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

.lnnf__list {
  margin: 0;
  padding: 5px 14px;
  list-style: none;
}

.lnnf__item {
  margin: 0;
  border-bottom: 1px solid var(--lnnf-border);
}

.lnnf__item:last-child { border-bottom: 0; }

.lnnf__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px;
  color: inherit !important;
  text-decoration: none !important;
}

.lnnf__image-wrap {
  position: relative;
  overflow: hidden;
  flex: 0 0 var(--lnnf-thumb, 64px);
  width: var(--lnnf-thumb, 64px);
  min-width: var(--lnnf-thumb, 64px);
  max-width: var(--lnnf-thumb, 64px);
  height: var(--lnnf-thumb, 64px);
  min-height: var(--lnnf-thumb, 64px);
  max-height: var(--lnnf-thumb, 64px);
  border-radius: 7px;
  background: var(--lnnf-card);
  line-height: 0;
}

.lnnf .lnnf__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center;
  transition: transform .25s ease;
}

.lnnf__number {
  flex: 0 0 28px;
  color: var(--lnnf-accent);
  font-size: 12px;
  font-weight: 900;
}

.lnnf__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.lnnf__title {
  display: block;
  overflow: visible;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.34;
  white-space: normal;
  word-break: normal;
}

.lnnf__time {
  display: block;
  margin-top: 5px;
  color: var(--lnnf-muted);
  font-size: 11px;
}

.lnnf__arrow {
  align-self: center;
  margin-left: auto;
  color: var(--lnnf-accent);
  font-size: 17px;
  transition: transform .2s ease;
}

.lnnf__link:hover .lnnf__title { color: var(--lnnf-accent); }
.lnnf__link:hover .lnnf__image { transform: scale(1.05); }
.lnnf__link:hover .lnnf__arrow { transform: translateX(3px); }

.lnnf--cards .lnnf__list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.lnnf--cards .lnnf__item {
  border: 0;
  border-radius: 10px;
  background: var(--lnnf-card);
}

.lnnf--cards .lnnf__link { padding: 9px; }

.lnnf__footer {
  padding: 0 14px 14px;
}

.lnnf__button {
  display: block;
  padding: 10px 12px;
  color: #fff !important;
  background: var(--lnnf-accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
}

.lnnf__button:hover { filter: brightness(.92); }

.lnnf__empty,
.lnnf-error {
  margin: 0;
  padding: 18px;
  font-size: 13px;
}

@keyframes lnnf-blink {
  0%, 48% { opacity: 1; }
  49%, 82% { opacity: 0; }
  83%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lnnf__dot { animation: none; }
  .lnnf__image,
  .lnnf__arrow { transition: none; }
}

@media (max-width: 420px) {
  .lnnf__logo { max-width: 96px; max-height: 24px; }
}

/* Burtieră TV. Prefixele proprii o izolează de stilurile globale Foxiz. */
.lnnf-ticker {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  height: var(--lnnf-ticker-height, 88px);
  margin: 0;
  color: var(--lnnf-ticker-text, #fff);
  background: var(--lnnf-ticker-bg, #101216);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  font-family: inherit;
  line-height: 1;
}

.lnnf-ticker__label {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  padding: 0 22px;
  color: #fff;
  background: var(--lnnf-ticker-accent, #e30613);
  box-shadow: 10px 0 22px rgba(0, 0, 0, .25);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .055em;
  white-space: nowrap;
}

.lnnf-ticker__label::after {
  position: absolute;
  top: 0;
  right: -18px;
  width: 19px;
  height: 100%;
  background: var(--lnnf-ticker-accent, #e30613);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: '';
}

.lnnf-ticker__label .lnnf__dot {
  flex: 0 0 8px;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}

.lnnf-ticker__viewport {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.lnnf-ticker__rail {
  display: flex;
  width: max-content;
  min-width: max-content;
  align-items: center;
  will-change: transform;
  animation: lnnf-ticker-scroll var(--lnnf-ticker-duration, 38s) linear infinite;
}

.lnnf-ticker:hover .lnnf-ticker__rail,
.lnnf-ticker:focus-within .lnnf-ticker__rail {
  animation-play-state: paused;
}

.lnnf-ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 38px;
}

.lnnf-ticker__item {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 30px;
  color: var(--lnnf-ticker-text, #fff) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.lnnf-ticker__item::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  background: var(--lnnf-ticker-accent, #e30613);
  border-radius: 50%;
  content: '';
}

.lnnf-ticker .lnnf-ticker__logo {
  display: block;
  width: auto !important;
  max-width: 100px !important;
  height: auto !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

.lnnf-ticker__source {
  color: var(--lnnf-ticker-accent, #e30613);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lnnf-ticker__title {
  color: inherit;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
}

.lnnf-ticker__time {
  color: rgba(255, 255, 255, .64);
  color: color-mix(in srgb, var(--lnnf-ticker-text, #fff) 64%, transparent);
  font-size: 11px;
  font-weight: 650;
}

.lnnf-ticker__item:hover .lnnf-ticker__title,
.lnnf-ticker__item:focus .lnnf-ticker__title {
  color: var(--lnnf-ticker-accent, #e30613);
}

@keyframes lnnf-ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 767px) {
  .lnnf-ticker { height: min(var(--lnnf-ticker-height, 88px), 76px); border-radius: 8px; }
  .lnnf-ticker__label { min-width: auto; padding: 0 13px; font-size: 10px; }
  .lnnf-ticker__label span:last-child { max-width: 46px; line-height: 1.12; white-space: normal; }
  .lnnf-ticker__item { gap: 10px; padding: 0 22px; }
  .lnnf-ticker .lnnf-ticker__logo { max-width: 72px !important; max-height: 25px !important; }
  .lnnf-ticker__title { font-size: 14px; }
  .lnnf-ticker__time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lnnf-ticker__viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .lnnf-ticker__rail { animation: none; }
  .lnnf-ticker__group[aria-hidden="true"] { display: none; }
}
