/* ============================================
   ORONFLIX — Browse Page (Netflix Home)
   ============================================ */

/* ---------- Billboard / Hero ---------- */
.onf-billboard {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  margin-bottom: var(--section-gap);
}

.onf-billboard__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.onf-billboard__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-smooth);
  pointer-events: none;
}

.onf-billboard__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Background — slow panning screenshots */
.onf-billboard__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.onf-billboard__bg-image {
  position: absolute;
  width: 200%;
  height: 120%;
  top: -10%;
  object-fit: cover;
  opacity: 0.5;
  filter: contrast(1.15) saturate(1.2) brightness(1.05) url(#sharpen);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  animation: billboardPan 25s linear infinite alternate;
}

.onf-billboard__bg-image--contain {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.4;
  animation: none;
}

@keyframes billboardPan {
  0% { transform: translateX(0) scale(1.05); }
  100% { transform: translateX(-30%) scale(1.1); }
}

/* Billboard phone mockups (Woofio) */
.onf-billboard__bg--phones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5%;
}

.onf-billboard__phones {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  transform: rotate(-6deg) translateY(20px);
}

.onf-billboard__phone {
  width: 200px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.onf-billboard__phone:nth-child(2) { transform: translateY(-40px); }
.onf-billboard__phone:nth-child(3) { transform: translateY(-15px); }

.onf-billboard__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 810px) {
  .onf-billboard__phones { gap: 12px; }
  .onf-billboard__phone { width: 110px; height: 240px; border-radius: 18px; border-width: 3px; }
}

@media (max-width: 390px) {
  .onf-billboard__bg--phones { padding-right: 0; justify-content: center; }
  .onf-billboard__phones { gap: 8px; }
  .onf-billboard__phone { width: 80px; height: 170px; border-radius: 14px; border-width: 2px; }
}

/* Gradient overlays */
.onf-billboard__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-primary) 20%, transparent 55%),
    linear-gradient(to top, var(--bg-primary) 15%, transparent 50%),
    linear-gradient(to bottom, rgba(10, 10, 18, 0.4) 0%, transparent 35%);
}

[data-theme="light"] .onf-billboard__gradient {
  background:
    linear-gradient(to right, var(--bg-primary) 25%, transparent 60%),
    linear-gradient(to top, var(--bg-primary) 10%, transparent 40%),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.3) 0%, transparent 30%);
}

/* Content */
.onf-billboard__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4%;
  padding-bottom: 36px;
  max-width: 600px;
}

.onf-billboard__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.onf-billboard__tag {
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
}

.onf-billboard__tag:first-child {
  background: var(--netflix-red);
  color: #fff;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.onf-billboard__tag:not(:first-child)::before {
  content: '·';
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.onf-billboard__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.onf-billboard__desc {
  font-size: 1.1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.onf-billboard__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.onf-billboard__actions .onf-btn--primary {
  background: #fff;
  color: #111;
  font-weight: 700;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 1rem;
}

.onf-billboard__actions .onf-btn--primary:hover {
  background: rgba(255, 255, 255, 0.8);
}

.onf-billboard__actions .onf-btn--secondary {
  background: rgba(110, 110, 110, 0.5);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.onf-billboard__actions .onf-btn--secondary:hover {
  background: rgba(110, 110, 110, 0.7);
}

.onf-billboard__actions .onf-btn--trailer {
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 4px;
}

/* Billboard dots — below buttons inside billboard */
.onf-billboard__dots {
  position: absolute;
  bottom: 30px;
  left: 4%;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.onf-billboard__dot {
  width: 32px;
  height: 23px;
  border-radius: 2px;
  background: transparent;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
  position: relative;
}

.onf-billboard__dot::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.onf-billboard__dot--active {
  width: 48px;
}

.onf-billboard__dot--active::after {
  background: var(--text-white);
}

/* Dot hover preview tooltip */
.onf-billboard__dot-preview {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 180px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.onf-billboard__dot:hover .onf-billboard__dot-preview {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.onf-billboard__dot-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.onf-billboard__dot-preview span {
  display: block;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20,20,30,0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Billboard progress timer */
.onf-billboard__timer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
}

.onf-billboard__timer-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: billboardTimer 4s linear;
}

@keyframes billboardTimer {
  from { width: 0%; }
  to { width: 100%; }
}

/* ---------- Featured Hero Cards ---------- */
.onf-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 4%;
  max-width: var(--max-width);
  margin: 0 auto var(--section-gap);
}

.onf-hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-smooth);
}

.onf-hero-card:hover {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.onf-hero-card:hover .onf-hero-card__gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.onf-hero-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.15) brightness(1.05);
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.5s var(--ease-smooth);
}

.onf-hero-card:hover .onf-hero-card__bg {
  transform: scale(1.08);
}

.onf-hero-card__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.onf-hero-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.onf-hero-card__badge {
  display: inline-block;
  background: var(--netflix-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.onf-hero-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.onf-hero-card__desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.onf-hero-card:hover .onf-hero-card__desc {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.onf-hero-card:hover .onf-hero-card__title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.onf-hero-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.onf-hero-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.onf-hero-card__cta svg {
  width: 14px;
  height: 14px;
}

.onf-hero-card:hover .onf-hero-card__cta {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.onf-hero-card__trailer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.onf-hero-card__trailer svg {
  width: 13px;
  height: 13px;
}

.onf-hero-card:hover .onf-hero-card__trailer {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Hero cards light mode */
[data-theme="light"] .onf-hero-card__gradient {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

/* Hero cards responsive */
@media (max-width: 810px) {
  .onf-hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .onf-hero-card {
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 390px) {
  .onf-hero-card__title {
    font-size: 1.1rem;
  }

  .onf-hero-card__desc {
    display: none;
  }

  .onf-hero-card__content {
    padding: 16px;
  }
}

/* ---------- Content Rows ---------- */
.onf-rows {
  padding: 0 4%;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
  padding-bottom: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.onf-row {
  position: relative;
}

.onf-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.onf-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
}

.onf-row__see-all {
  font-size: var(--fs-small);
  color: var(--accent-light);
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.onf-row:hover .onf-row__see-all {
  opacity: 1;
}

/* Carousel container */
.onf-row__carousel {
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0;
  margin: -20px 0;
}

.onf-row__carousel::-webkit-scrollbar {
  display: none;
}

/* Arrow buttons */
.onf-row__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 100%;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--duration-fast);
  color: white;
  font-size: 1.5rem;
}

.onf-row:hover .onf-row__arrow {
  opacity: 1;
}

.onf-row__arrow--left {
  left: -20px;
  background: linear-gradient(to right, rgba(10,10,18,0.8), transparent);
  padding-right: 12px;
}

.onf-row__arrow--right {
  right: -20px;
  background: linear-gradient(to left, rgba(10,10,18,0.8), transparent);
  padding-left: 12px;
}

.onf-row__arrow:hover {
  background: rgba(10, 10, 18, 0.9);
}

/* ---------- Project Cards ---------- */
.onf-card {
  flex: 0 0 var(--card-width-desktop);
  scroll-snap-align: start;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring),
              z-index 0s 0.3s;
}

.onf-card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: var(--shadow-card-hover);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring),
              z-index 0s 0s;
}

/* Card thumbnail */
.onf-card__thumb {
  position: relative;
  padding-bottom: var(--card-ratio);
  background: var(--bg-card);
  overflow: hidden;
}

.onf-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.onf-card:hover .onf-card__thumb-img {
  transform: scale(1.06);
}

/* Card gradient overlay */
.onf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.onf-card:hover .onf-card__overlay {
  opacity: 1;
}

/* Card info (shown on hover) */
.onf-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-spring),
              opacity var(--duration-normal);
}

.onf-card:hover .onf-card__info {
  transform: translateY(0);
  opacity: 1;
}

.onf-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.onf-card__meta {
  font-size: var(--fs-tiny);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.onf-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

/* Card progress bar */
.onf-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.onf-card__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* Card bottom label (always visible) */
.onf-card__label {
  padding: 10px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.onf-card__label-title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onf-card__label-sub {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Continue Watching Row ---------- */
.onf-row--continue .onf-card__thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.onf-row--continue .onf-card:hover .onf-card__thumb::after {
  opacity: 1;
}

/* ---------- Category Chips ---------- */
.onf-chips {
  display: flex;
  gap: 8px;
  padding: 0 4%;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.onf-chips::-webkit-scrollbar { display: none; }

.onf-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration-fast);
}

.onf-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

.onf-chip--active {
  background: var(--text-white);
  color: var(--bg-primary);
  border-color: transparent;
}

/* ---------- About Section ---------- */
.onf-about {
  display: inline-flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  max-width: 100%;
}

.onf-about__avatar {
  flex: 0 0 100px;
  padding-top: 2px;
}

.onf-about__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-subtle);
}

.onf-about__text {
  flex: 1;
  min-width: 0;
}

.onf-about__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.onf-about__bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 480px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.onf-about__badges {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.onf-badge--skill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
}

[data-theme="light"] .onf-badge--skill {
  background: rgba(0, 0, 0, 0.06);
  color: #4a4a5a;
}

/* About actions (Resume + Download) */
.onf-about__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.onf-about__actions .onf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.onf-about__actions .onf-btn--white {
  background: #fff;
  color: #111;
}

.onf-about__actions .onf-btn--white:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.onf-about__actions .onf-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.onf-about__actions .onf-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.onf-about__actions .onf-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .onf-about {
  background: #f8f8fc;
  border-color: #e2e2ea;
}

[data-theme="light"] .onf-about__actions .onf-btn--white {
  background: #1a1a2e;
  color: #fff;
}

[data-theme="light"] .onf-about__actions .onf-btn--white:hover {
  background: #2a2a4e;
}

[data-theme="light"] .onf-about__actions .onf-btn--outline {
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .onf-about__actions .onf-btn--outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.4);
}

/* About responsive */
@media (max-width: 640px) {
  .onf-about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }

  .onf-about__bio {
    max-width: 100%;
  }

  .onf-about__badges {
    justify-content: center;
  }

  .onf-about__actions {
    justify-content: center;
  }
}

/* ---------- Footer ---------- */
.onf-footer {
  padding: 48px 4%;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.onf-footer__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onf-footer__name {
  font-weight: 700;
  color: var(--text-primary);
}

.onf-footer__links {
  display: flex;
  gap: 20px;
}

.onf-footer__link {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.onf-footer__link:hover {
  color: var(--accent-light);
}

.onf-footer__copy {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
}

/* ---------- Responsive — Browse ---------- */
@media (max-width: 1200px) {
  .onf-card {
    flex: 0 0 var(--card-width-tablet);
  }
}

@media (max-width: 810px) {
  .onf-billboard {
    height: 75vh;
    min-height: 420px;
    max-height: 600px;
  }

  .onf-billboard__bg-image {
    width: 140%;
    height: 100%;
    top: 0;
    opacity: 0.55;
    animation: none;
  }

  .onf-billboard__gradient {
    background:
      linear-gradient(to top, var(--bg-primary) 20%, transparent 60%),
      linear-gradient(to bottom, rgba(10, 10, 18, 0.4) 0%, transparent 40%);
  }

  [data-theme="light"] .onf-billboard__gradient {
    background:
      linear-gradient(to top, var(--bg-primary) 20%, transparent 60%),
      linear-gradient(to bottom, rgba(245, 245, 247, 0.4) 0%, transparent 40%);
  }

  .onf-billboard__content {
    padding-top: 0;
    justify-content: flex-end;
    padding-bottom: 40px;
    max-width: 100%;
  }

  .onf-billboard__title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .onf-billboard__title br {
    display: none;
  }

  .onf-billboard__desc {
    font-size: var(--fs-small);
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .onf-billboard__actions {
    gap: 8px;
  }

  .onf-billboard__actions .onf-btn {
    padding: 10px 20px;
    font-size: var(--fs-small);
  }

  .onf-billboard__dots {
    bottom: 12px;
  }

  .onf-row__arrow {
    display: none;
  }

  .onf-card {
    flex: 0 0 var(--card-width-mobile);
  }

  .onf-rows {
    padding-bottom: 40px;
  }

  .onf-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .onf-billboard {
    height: 65vh;
    min-height: 380px;
    max-height: 520px;
  }

  .onf-billboard__content {
    padding-bottom: 30px;
  }

  .onf-billboard__bg-image {
    width: 160%;
  }

  .onf-billboard__dots {
    bottom: 8px;
  }

  .onf-billboard__dot {
    height: 8px;
    padding: 6px 0;
    background-clip: content-box;
  }

  .onf-billboard__actions {
    flex-direction: column;
  }

  .onf-billboard__actions .onf-btn {
    width: 100%;
    justify-content: center;
  }

  .onf-chip {
    padding: 10px 18px;
  }

  .onf-footer__links {
    gap: 12px;
  }

  .onf-about {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .onf-about__avatar {
    flex: 0 0 auto;
  }

  .onf-about__img {
    width: 90px;
    height: 90px;
  }

  .onf-about__name {
    font-size: 1.1rem;
  }

  .onf-about__text {
    min-width: 0;
  }
}

/* Touch device — prevent sticky hover */
@media (hover: none) {
  .onf-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    z-index: auto;
  }

  .onf-card:hover .onf-card__thumb-img {
    transform: none;
  }

  .onf-card:hover .onf-card__overlay {
    opacity: 0;
  }

  .onf-card:hover .onf-card__info {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ---------- Light Mode Overrides ---------- */
[data-theme="light"] .onf-billboard__gradient {
  background:
    linear-gradient(to right, var(--bg-primary) 25%, transparent 60%),
    linear-gradient(to top, var(--bg-primary) 10%, transparent 40%),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.3) 0%, transparent 30%);
}

[data-theme="light"] .onf-billboard__bg-image {
  opacity: 0.25;
}

[data-theme="light"] .onf-billboard__tag {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onf-billboard__dot {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .onf-billboard__dot--active {
  background: var(--text-primary);
}

[data-theme="light"] .onf-row__arrow {
  color: var(--text-primary);
}

[data-theme="light"] .onf-row__arrow--left {
  background: linear-gradient(to right, rgba(245, 245, 247, 0.9), transparent);
}

[data-theme="light"] .onf-row__arrow--right {
  background: linear-gradient(to left, rgba(245, 245, 247, 0.9), transparent);
}

[data-theme="light"] .onf-row__arrow:hover {
  background: rgba(245, 245, 247, 0.95);
}

[data-theme="light"] .onf-card__title {
  color: var(--text-primary);
}

[data-theme="light"] .onf-card__meta {
  color: var(--text-muted);
}

[data-theme="light"] .onf-card__meta-dot {
  background: var(--text-muted);
}

[data-theme="light"] .onf-card__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
}

[data-theme="light"] .onf-card__progress {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onf-chip {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onf-chip:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

[data-theme="light"] .onf-chip--active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: transparent;
}

[data-theme="light"] .onf-row--continue .onf-card__thumb::after {
  background: rgba(0, 0, 0, 0.5);
}
