:root {
  --tp-bg: #f5f6f8;
  --tp-surface: #ffffff;
  --tp-elevated: #f9fafb;
  --tp-line: #e5e7eb;
  --tp-text: #111827;
  --tp-muted: #6b7280;
  --tp-muted-2: #9ca3af;
  --tp-accent: var(--themepro-accent, #1a6bc8);
  --tp-accent-hover: var(--themepro-accent-hover, #15579f);
  --tp-soft-shadow: 0 14px 38px rgba(15, 23, 42, .07);
  --tp-drawer-shadow: 24px 0 60px rgba(15, 23, 42, .18);
}

* { scrollbar-width: thin; scrollbar-color: #c7cbd1 transparent; }
html { overflow-x: hidden; }
body.themepro-v2 {
  margin: 0;
  min-width: 0;
  background: var(--tp-bg) !important;
  color: var(--tp-text);
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.themepro-v2 *, body.themepro-v2 *::before, body.themepro-v2 *::after { box-sizing: border-box; }
body.themepro-v2 a { color: inherit; text-decoration: none; }
body.themepro-v2 button,
body.themepro-v2 input,
body.themepro-v2 select,
body.themepro-v2 textarea {
  font-family: inherit !important;
  font-size: inherit;
}
body.themepro-v2 button { cursor: pointer; }
body.themepro-v2 img { max-width: 100%; }

/* Friends top bar */
.tp-friends-topbar { border-bottom: 1px solid var(--tp-line); background: #f9fafb; }
.tp-friends-inner { display: flex; min-height: 38px; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; }
.tp-friends-group { display: flex; min-width: 0; align-items: center; gap: 12px; }
.tp-friends-label { flex: 0 0 auto; color: var(--tp-accent); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .10em; }
.tp-friends-scroll { display: flex; min-width: 0; align-items: center; gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tp-friends-scroll::-webkit-scrollbar { display: none; }
.tp-friends-scroll a { border-radius: 999px; padding: 5px 10px; color: #6b7280; font-size: 11px; font-weight: 500; transition: background-color .18s ease, color .18s ease; }
.tp-friends-scroll a:hover { background: #fff; color: #111827; }

/* Header */
.tp-header { position: relative; z-index: 60; border-bottom: 1px solid var(--tp-line); background: var(--tp-surface); }
.tp-header-inner { display: flex; width: 100%; height: 74px; align-items: center; justify-content: space-between; padding: 0 16px; }
.tp-header-left { display: flex; min-width: 0; align-items: center; gap: 16px; }
.tp-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.tp-icon-btn,
.tp-grid-toggle,
.tp-sort-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tp-line); background: #fff; color: #6b7280; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.tp-icon-btn { width: 40px; height: 40px; border-radius: 8px; }
.tp-icon-btn:hover,
.tp-grid-toggle:hover,
.tp-sort-button:hover { border-color: #bfdbfe; background: #f9fafb; color: var(--tp-accent); }
.tp-mobile-menu-btn { display: inline-flex; }

.tp-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.tp-brand-icon { display: inline-flex; width: 36px; height: 44px; align-items: center; justify-content: center; color: var(--tp-accent); font-size: 27px; }
.tp-brand-name { display: inline-flex; align-items: baseline; color: #111827; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.tp-brand-name-primary,
.tp-brand-name-accent { display: inline; }
.tp-brand-name-accent { color: var(--tp-accent); }
.tp-logo { display: block; width: auto; max-width: 230px; height: 44px; object-fit: contain; }
.tp-logo-dark { display: none; }
.dark .tp-logo-light { display: none; }
.dark .tp-logo-dark { display: block; }
.dark .tp-logo-dark:only-child { display: block; }

.tp-main-nav { display: none; align-items: center; gap: 4px; }
.tp-main-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tp-main-menu li { margin: 0; padding: 0; }
.tp-main-menu a,
.tp-bookmarks-nav { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 9px 16px; color: #6b7280; font-size: 13px; font-weight: 500; line-height: 1; transition: background-color .18s ease, color .18s ease; }
.tp-main-menu a:hover,
.tp-bookmarks-nav:hover { background: #f9fafb; color: #111827; }
.tp-main-menu .current-menu-item > a,
.tp-main-menu .current_page_item > a,
.tp-bookmarks-nav.is-active { background: #f3f4f6; color: #111827; font-weight: 600; }
.tp-bookmarks-nav i { font-size: 12px; }
.tp-bookmarks-count { display: inline-flex !important; flex: 0 0 auto; min-width: 20px; height: 20px; align-items: center; justify-content: center; margin-left: 1px; border-radius: 999px; background: var(--tp-accent) !important; padding: 0 6px; color: #fff !important; font-size: 10px; font-weight: 700; line-height: 20px; box-shadow: 0 2px 6px rgba(15,23,42,.12); }
.tp-bookmarks-count[hidden] { display: none !important; }

.tp-mobile-search-wrap,
.tp-notifications-wrap { position: relative; }
.tp-desktop-search { position: relative; display: none; min-width: 270px; height: 40px; align-items: center; border: 1px solid var(--tp-line); border-radius: 8px; background: #f9fafb; color: #9ca3af; }
.tp-desktop-search-icon { position: absolute; left: 14px; top: 50%; display: flex; transform: translateY(-50%); pointer-events: none; }
.tp-desktop-search input { width: 100%; height: 100%; border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0 58px 0 39px !important; color: #374151 !important; font-size: 12px !important; box-shadow: none !important; }
.tp-desktop-search input::placeholder { color: #9ca3af; }
.tp-desktop-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 1px solid var(--tp-line); border-radius: 4px; background: #fff; padding: 4px 8px; color: #9ca3af; font-size: 10px; line-height: 1; }

.tp-dropdown { position: absolute; right: 0; top: 48px; z-index: 100; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; box-shadow: var(--tp-soft-shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity .2s ease, visibility .2s ease, transform .25s ease; }
.tp-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.tp-search-dropdown { width: 300px; max-width: calc(100vw - 24px); }
.tp-dropdown-head { border-bottom: 1px solid var(--tp-line); padding: 12px 16px; }
.tp-dropdown-head strong { display: block; color: #111827; font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.tp-dropdown-head span { display: block; margin-top: 2px; color: #9ca3af; font-size: 11px; }
.tp-search-dropdown-form { padding: 12px; }
.tp-search-field { position: relative; }
.tp-search-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.tp-search-field input { width: 100%; height: 40px; border: 1px solid var(--tp-line) !important; border-radius: 999px !important; outline: 0; background: #f9fafb !important; padding: 0 16px 0 40px !important; color: #374151 !important; font-size: 12px !important; box-shadow: none !important; }
.tp-search-field input:focus { border-color: #93c5fd !important; background: #fff !important; }

.tp-notification-dot { position: absolute; right: 8px; top: 7px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #ef4444; }
.tp-notification-dropdown { width: 360px; max-width: calc(100vw - 24px); }
.tp-notification-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--tp-line); padding: 14px 16px; }
.tp-notification-head strong { display: block; color: #111827; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.tp-notification-head span { display: block; margin-top: 2px; color: #9ca3af; font-size: 11px; font-weight: 500; }
.tp-notification-item { display: flex; gap: 12px; padding: 16px; transition: background-color .18s ease; }
.tp-notification-item:hover { background: #f9fafb; }
.tp-notification-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 8px; background: #eff6ff; color: var(--tp-accent); font-size: 14px; }
.tp-notification-item strong { display: block; color: #111827; font-size: 12px; font-weight: 600; }
.tp-notification-item em { display: block; margin-top: 5px; color: #6b7280; font-size: 11px; font-style: normal; line-height: 1.8; }
.tp-notification-view { display: block; border-top: 1px solid var(--tp-line); padding: 12px 16px; color: #4b5563; font-size: 11px; font-weight: 600; text-align: center; }
.tp-notification-view:hover { background: #f9fafb; }

/* Category strip */
.tp-category-bar { border-bottom: 1px solid #dce8f7; background: #f3f7fd; }
.tp-category-inner { width: 100%; max-width: 1880px; margin: 0 auto; padding: 0 16px; }
.tp-category-scroll { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 0; white-space: nowrap; scrollbar-width: none; }
.tp-category-scroll::-webkit-scrollbar { display: none; }
.tp-category-pill { flex: 0 0 auto; border: 1px solid #dfe7f2; border-radius: 999px; background: #fff; padding: 7px 14px; color: #4b5563; font-size: 12px; font-weight: 500; letter-spacing: -.008em; box-shadow: 0 1px 2px rgba(15,23,42,.03); transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.tp-category-pill:hover { border-color: #bfdbfe; color: var(--tp-accent); }
.tp-category-pill.is-active { border-color: #bfdbfe; background: #eaf2fc; color: var(--tp-accent); font-weight: 600; }

/* Mobile sidebar */
.tp-mobile-sidebar-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(2,6,23,.35); backdrop-filter: blur(1px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.tp-mobile-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 130; width: 88vw; max-width: 350px; overflow-y: auto; background: #fff; box-shadow: var(--tp-drawer-shadow); transform: translateX(-100%); transition: transform .25s ease; }
body.sidebar-open { overflow: hidden; }
body.sidebar-open .tp-mobile-sidebar-overlay { opacity: 1; visibility: visible; }
body.sidebar-open .tp-mobile-sidebar { transform: translateX(0); }
.tp-mobile-sidebar-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--tp-line); background: #fff; padding: 16px; }
.tp-mobile-sidebar-head h2,
.tp-sidebar-head h2 { margin: 0; color: #111827; font-size: 15px; font-weight: 600; line-height: 1.15; letter-spacing: -.008em; }
.tp-mobile-sidebar-head p,
.tp-sidebar-head p { margin: 2px 0 0; color: #9ca3af; font-size: 11px; font-weight: 500; line-height: 1.2; }
.tp-mobile-sidebar-body { padding: 16px; }
.tp-mobile-bookmarks-link { display: flex; width: 100%; align-items: center; gap: 10px; margin: 0 0 18px; border: 1px solid var(--tp-line); border-radius: 10px; background: #fff; padding: 10px 12px; color: #4b5563; font-size: 12px; font-weight: 600; line-height: 1; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.tp-mobile-bookmarks-link:hover,
.tp-mobile-bookmarks-link.is-active { border-color: #bfdbfe; background: #f9fafb; color: var(--tp-accent); }
.tp-mobile-bookmarks-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 7px; background: #f3f4f6; color: var(--tp-accent); }
.tp-mobile-bookmarks-icon i { font-size: 11px; }
.tp-mobile-bookmarks-label { min-width: 0; flex: 1 1 auto; }
.tp-mobile-bookmarks-count { margin-left: auto !important; }

/* Desktop layout/sidebar */
.tp-main-shell { width: 100%; padding: 24px 0 0; }
.desktop-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; transition: grid-template-columns .28s ease, gap .28s ease; }
.desktop-sidebar-shell { position: relative; display: none; min-width: 0; overflow: visible; transition: width .28s ease, opacity .2s ease; }
.desktop-sidebar-panel { position: sticky; top: 20px; border-top: 1px solid var(--tp-line); border-right: 1px solid var(--tp-line); border-bottom: 1px solid var(--tp-line); background: #fff; transition: transform .28s ease, opacity .2s ease; will-change: transform; }
.desktop-sidebar-toggle { position: absolute; right: -13px; top: 28px; z-index: 30; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--tp-line); border-radius: 50%; background: #fff; color: #9ca3af; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.desktop-sidebar-toggle i { font-size: 10px; }
.desktop-sidebar-toggle:hover { border-color: #bfdbfe; background: #f9fafb; color: var(--tp-accent); }
.tp-sidebar-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--tp-line); padding: 16px 20px; }
.tp-sidebar-clear { border: 1px solid #dbeafe; border-radius: 999px; background: #eff6ff; padding: 7px 12px; color: var(--tp-accent); font-size: 10px; font-weight: 600; letter-spacing: .04em; transition: border-color .18s ease, background-color .18s ease; }
.tp-sidebar-clear:hover { border-color: #bfdbfe; background: #fff; }
.tp-sidebar-body { padding: 20px; }
.tp-sidebar-widgets { border-top: 1px solid var(--tp-line); }
.themepro-main { min-width: 0; overflow: hidden; padding: 0 16px; }

html.tp-sidebar-collapsed .desktop-layout { grid-template-columns: 18px minmax(0,1fr) !important; gap: 0 !important; }
html.tp-sidebar-collapsed .desktop-sidebar-shell { width: 18px; opacity: 1; overflow: visible; }
html.tp-sidebar-collapsed .desktop-sidebar-panel { transform: translateX(calc(-100% - 18px)); opacity: 0; pointer-events: none; }
html.tp-sidebar-collapsed .desktop-sidebar-toggle { transform: rotate(180deg); }

/* Filters */
.tp-filter-groups { display: flex; flex-direction: column; gap: 24px; }
.tp-filter-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-filter-group legend { margin: 0 0 12px; padding: 0; color: #6b7280; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .045em; }
.tp-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-filter-chip { display: inline-flex; cursor: pointer; }
.tp-filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tp-filter-chip span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--tp-line); border-radius: 999px; background: #f9fafb; padding: 8px 12px; color: #4b5563; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: -.005em; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.tp-filter-chip:hover span { transform: translateY(-1px); }
.tp-filter-chip input:checked + span { border-color: var(--tp-accent); background: var(--tp-accent); color: #fff; }
.tp-filter-chip img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.tp-filter-extra { display: none; }
.tp-filter-group.is-expanded .tp-filter-extra { display: inline-flex; }
.tp-more-categories { display: inline-flex !important; min-height: 0 !important; align-items: center; gap: 4px; margin-top: 10px; border: 1px solid var(--tp-line) !important; border-radius: 999px !important; background: #fff !important; padding: 5px 9px !important; color: #4b5563 !important; font-size: 10px !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: .01em; box-shadow: none !important; }
.tp-more-categories:hover { border-color: #bfdbfe !important; color: var(--tp-accent) !important; }
.tp-more-categories i { margin: 0 !important; font-size: 8px !important; transition: transform .2s ease; }
.tp-filter-group.is-expanded .tp-more-categories i { transform: rotate(180deg); }

/* Listing heading */
.tp-listing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.tp-kicker { margin-bottom: 4px; color: var(--tp-accent); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.tp-listing-head h1 { margin: 0; color: #1f2937; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.018em; }
.tp-listing-actions { display: flex; align-items: center; gap: 8px; }
.tp-live-counter { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid #fee2e2; border-radius: 999px; background: #fef2f2; padding: 4px 10px; color: #ef4444; font-size: 10px; font-weight: 400; letter-spacing: .01em; }
.tp-live-counter > span { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ef4444; }
.tp-sort-button { height: 36px; gap: 8px; border-radius: 8px; padding: 0 12px; color: #4b5563; font-size: 11px; font-weight: 600; }
.tp-grid-toggle { width: 36px; height: 36px; border-radius: 8px; }
html.tp-grid-compact .tp-grid-toggle { border-color: #bfdbfe; background: #eff6ff; color: var(--tp-accent); }

/* Webcam cards */
.tp-cams-grid,
#webcams-grid,
#related-webcams-grid { display: grid !important; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 16px !important; }
.tp-cam-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tp-cam-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: var(--tp-soft-shadow); }
.tp-card-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(140deg,#eceef2 0%,#dfe3e8 45%,#cfd5dc 100%); }
.tp-card-thumb::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top,rgba(17,24,39,.52),transparent 44%); pointer-events: none; }
.tp-card-thumb-link { position: absolute; inset: 0; z-index: 1; display: block; }
.tp-card-image,
.tp-card-thumb .t-thumb,
.tp-card-thumb .t-thumb-video { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.tp-bookmark-btn { position: absolute; right: 12px; top: 12px; z-index: 10; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(255,255,255,.82); color: #374151; box-shadow: 0 1px 2px rgba(0,0,0,.08); backdrop-filter: blur(4px); opacity: .92; transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease; }
.tp-bookmark-btn:hover,
.tp-bookmark-btn.is-bookmarked { background: #fff; color: var(--tp-accent); }
.tp-bookmark-btn.is-bookmarked { opacity: 1; }
.tp-bookmark-btn i { font-size: 12px; }
.tp-online-badge { position: absolute; left: 12px; top: 12px; z-index: 8; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 6px 8px; color: #fff; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .04em; }
.tp-online-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.tp-online-badge.is-online { background: #ef4444; }
.tp-online-badge.is-offline { background: #4b5563; }
.tp-viewers-badge { position: absolute; left: 12px; bottom: 12px; z-index: 8; border-radius: 6px; background: rgba(2,6,23,.70); padding: 6px 8px; color: #fff; font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .01em; }
.tp-card-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
.tp-card-avatar { display: block; width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; border: 2px solid var(--tp-accent); border-radius: 50%; background: #e5e7eb; }
.tp-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-card-copy { display: block; min-width: 0; }
.tp-card-title-row { display: flex; min-width: 0; align-items: center; gap: 6px; }
.tp-card-title { display: block; min-width: 0; overflow: hidden; color: #1f2937; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: -.008em; text-overflow: ellipsis; white-space: nowrap; }
.tp-verified { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; align-items: center; justify-content: center; }
.tp-verified img { display: block; width: 16px; height: 16px; object-fit: contain; }
.tp-card-meta { display: block; margin-top: 5px; overflow: hidden; color: #9ca3af; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

.tp-bookmarks-loading { padding: 44px 0; color: #9ca3af; font-size: 13px; text-align: center; }
.tp-bookmarks-empty { padding: 64px 20px; color: #6b7280; text-align: center; }
.tp-bookmarks-empty > i { color: var(--tp-accent); font-size: 32px; }
.tp-bookmarks-empty h2 { margin: 16px 0 6px; color: #1f2937; font-size: 18px; font-weight: 600; }
.tp-bookmarks-empty p { margin: 0 auto; max-width: 460px; color: #9ca3af; font-size: 12px; line-height: 1.7; }
.tp-content-surface { margin: 24px 0 0; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; padding: 18px 20px; color: #6b7280; font-size: 14px; line-height: 1.75; }


/* Taxonomy directory */
.tp-directory-head { margin: 0 0 22px; }
.tp-directory-head h1 { margin: 0; color: #1f2937; font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -.018em; }
.tp-directory-head p { margin: 8px 0 0; color: #9ca3af; font-size: 12px; line-height: 1.65; }
.tp-taxonomy-directory { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.tp-taxonomy-section { min-width: 0; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.tp-taxonomy-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.tp-taxonomy-section-head h2 { margin: 0; color: #1f2937; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.tp-directory-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-directory-term { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; border: 1px solid var(--tp-line); border-radius: 999px; background: #f9fafb; padding: 7px 11px; color: #4b5563; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: -.005em; transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease; }
.tp-directory-term:hover { transform: translateY(-1px); border-color: #bfdbfe; background: #fff; color: var(--tp-accent); }
.tp-directory-flag { display: inline-flex; align-items: center; font-size: 14px; line-height: 1; }
.tp-taxonomy-load-more { display: inline-flex !important; min-height: 34px !important; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; border: 1px solid var(--tp-line) !important; border-radius: 8px !important; background: #fff !important; padding: 0 12px !important; color: #4b5563 !important; font-size: 11px !important; font-weight: 500 !important; line-height: 1 !important; box-shadow: none !important; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.tp-taxonomy-load-more:hover { border-color: #bfdbfe !important; background: #f9fafb !important; color: var(--tp-accent) !important; }
.tp-taxonomy-load-more:disabled { cursor: wait; opacity: .72; }
.tp-taxonomy-load-more i { margin: 0 !important; font-size: 10px !important; }

/* Existing pagination adapted to v2 */
.pagination-custom { margin-top: 32px !important; }
.pagination-custom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination-custom li a,
.pagination-custom li span,
.pagination-loadmore .js-webcams-loadmore { border: 1px solid var(--tp-line) !important; border-radius: 8px !important; background: #fff !important; color: #4b5563 !important; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.pagination-loadmore .js-webcams-loadmore { min-height: 38px; gap: 7px; padding: 0 14px !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -.005em; }
.pagination-loadmore .js-webcams-loadmore i { margin: 0 !important; font-size: 11px; }
.pagination-custom li a:hover,
.pagination-loadmore .js-webcams-loadmore:hover { border-color: #bfdbfe !important; color: var(--tp-accent) !important; }
.pagination-custom li span.current { border-color: var(--tp-accent) !important; background: var(--tp-accent) !important; color: #fff !important; }

/* Existing Theme Pro content/single aligned with v2 */
.text-title { margin: 0 0 20px !important; color: #1f2937 !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.018em; }
.text-title i { color: var(--tp-accent) !important; }
.themepro-single-shell { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.themepro-single-layout { gap: 20px !important; }
.pc-webcam-wrap,
.pc-info-card,
.term-description,
.site-main .hentry,
.prose { border-color: var(--tp-line) !important; color: #374151; }
.pc-info-card,
.pc-info-card-v2,
.term-description { background: #fff !important; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.pc-chip,
.pc-info-value,
.pc-more-btn { border-color: var(--tp-line) !important; }
.pc-single-cta { background: var(--tp-accent) !important; }
.pc-single-cta:hover { background: var(--tp-accent-hover) !important; }
.site-main { width: 100%; }
.posts-grid { gap: 16px !important; }
.post-card { border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; overflow: hidden; }

/* Footer */
.tp-footer { margin-top: 40px; border-top: 1px solid var(--tp-line); background: #fff; }
.tp-footer-inner { display: flex; width: 100%; max-width: 1880px; margin: 0 auto; flex-direction: column; gap: 12px; padding: 24px 16px; color: #6b7280; font-size: 11px; }
.tp-footer-top-text { margin-bottom: 6px; }
.tp-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tp-footer-links a:hover { color: #111827; }

/* Dark mode */
html.dark { color-scheme: dark; }
html.dark body.themepro-v2 { --tp-bg: #111111; --tp-surface: #141414; --tp-elevated: #1b1b1b; --tp-line: #2c2c2c; --tp-text: #e5e7eb; --tp-muted: #9aa7b8; background: #111 !important; color: #e5e7eb; }
html.dark .tp-friends-topbar { border-color: #252525; background: #121212; }
html.dark .tp-friends-scroll a { color: #a9a9a9; }
html.dark .tp-friends-scroll a:hover { background: #242424; color: #fff; }
html.dark .tp-header { border-color: #252525; background: #141414; }
html.dark .tp-brand-name { color: #f1f5f9; }
html.dark .tp-main-menu a,
html.dark .tp-bookmarks-nav { color: #aaa; }
html.dark .tp-bookmarks-count { background: var(--tp-accent) !important; color: #fff !important; box-shadow: none; }
html.dark .tp-main-menu a:hover,
html.dark .tp-bookmarks-nav:hover { background: #232323; color: #fff; }
html.dark .tp-main-menu .current-menu-item > a,
html.dark .tp-main-menu .current_page_item > a,
html.dark .tp-bookmarks-nav.is-active { background: #242424; color: #fff; }
html.dark .tp-icon-btn,
html.dark .tp-grid-toggle,
html.dark .tp-sort-button,
html.dark .desktop-sidebar-toggle,
html.dark .tp-more-categories { border-color: #313131 !important; background: #222 !important; color: #9aa7b8 !important; }
html.dark .tp-mobile-bookmarks-link { border-color: #313131; background: #222; color: #cbd5e1; }
html.dark .tp-mobile-bookmarks-link:hover,
html.dark .tp-mobile-bookmarks-link.is-active { border-color: #3a3a3a; background: #282828; color: #fff; }
html.dark .tp-mobile-bookmarks-icon { background: #2a2a2a; color: var(--tp-accent); }
html.dark .tp-icon-btn:hover,
html.dark .tp-grid-toggle:hover,
html.dark .tp-sort-button:hover,
html.dark .desktop-sidebar-toggle:hover,
html.dark .tp-more-categories:hover { border-color: #3a3a3a !important; background: #282828 !important; color: #fff !important; }
html.dark #themeToggle { border-color: #343434; background: #262626; color: #f5c66a; }
html.dark .tp-desktop-search { border-color: #313131; background: #1b1b1b; }
html.dark .tp-desktop-search input { color: #e5e7eb !important; }
html.dark .tp-desktop-search input::placeholder { color: #6f7b8c; }
html.dark .tp-desktop-search kbd { border-color: #313131; background: #262626; color: #8491a2; }
html.dark .tp-dropdown { border-color: #2c2c2c; background: #222; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
html.dark .tp-dropdown-head,
html.dark .tp-notification-head,
html.dark .tp-notification-view { border-color: #2c2c2c; }
html.dark .tp-dropdown-head strong,
html.dark .tp-notification-head strong,
html.dark .tp-notification-item strong { color: #f1f5f9; }
html.dark .tp-notification-item:hover,
html.dark .tp-notification-view:hover { background: #1a2029; }
html.dark .tp-notification-icon { background: #252525; }
html.dark .tp-search-field input { border-color: #313131 !important; background: #1b1b1b !important; color: #e5e7eb !important; }
html.dark .tp-notification-dot { border-color: #1a1a1a; }
html.dark .tp-category-bar { border-color: #2a2a2a; background: #202020; }
html.dark .tp-category-pill { border-color: #292929; background: #292929; color: #d0d0d0; box-shadow: none; }
html.dark .tp-category-pill:hover { border-color: #303030; background: #303030; color: #fff; }
html.dark .tp-category-pill.is-active { border-color: #303030; background: #303030; color: #fff; }
html.dark .tp-mobile-sidebar,
html.dark .tp-mobile-sidebar-head,
html.dark .desktop-sidebar-panel { border-color: #2c2c2c; background: #1d1d1d; }
html.dark .tp-mobile-sidebar-head h2,
html.dark .tp-sidebar-head h2 { color: #f0f0f0; }
html.dark .tp-sidebar-head { border-color: #2c2c2c; }
html.dark .tp-sidebar-clear { border-color: #383838; background: #2a2a2a; color: #fff; }
html.dark .tp-sidebar-clear:hover { border-color: #444; background: #303030; }
html.dark .tp-filter-group legend { color: #a9a9a9; }
html.dark .tp-filter-chip span { border-color: #313131; background: #262626; color: #ddd; }
html.dark .tp-filter-chip:hover span { border-color: #3a4a5f; background: #2d2d2d; }
html.dark .tp-filter-chip input:checked + span { border-color: var(--tp-accent); background: var(--tp-accent); color: #fff; }
html.dark .tp-live-counter { border-color: #433232; background: #2b1f1f; color: #ef4444; }
html.dark .tp-live-counter > span:first-child { background: #ef4444; }
html.dark .tp-listing-head h1,
html.dark .text-title,
html.dark .tp-bookmarks-empty h2 { color: #f3f3f3 !important; }
html.dark .tp-cam-card { border-color: #2c2c2c; background: #222; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
html.dark .tp-cam-card:hover { border-color: #315f92; box-shadow: 0 14px 30px rgba(0,0,0,.18); }
html.dark .tp-card-thumb { background: linear-gradient(140deg,#2a2a2a 0%,#242424 45%,#1e1e1e 100%); }
html.dark .tp-bookmark-btn { border-color: rgba(255,255,255,.08); background: rgba(26,26,26,.88); color: #ddd; }
html.dark .tp-bookmark-btn:hover,
html.dark .tp-bookmark-btn.is-bookmarked { background: #242424; color: #fff; }
html.dark .tp-card-title { color: #eee; }
html.dark .tp-card-meta { color: #9f9f9f; }
html.dark .tp-directory-head h1,
html.dark .tp-taxonomy-section-head h2 { color: #f3f3f3; }
html.dark .tp-directory-head p { color: #9aa7b8; }
html.dark .tp-taxonomy-section { border-color: #2c2c2c; background: #222; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
html.dark .tp-directory-term { border-color: #313131; background: #262626; color: #ddd; }
html.dark .tp-directory-term:hover { border-color: #3a4a5f; background: #2d2d2d; color: #fff; }
html.dark .tp-taxonomy-load-more { border-color: #313131 !important; background: #222 !important; color: #cbd5e1 !important; }
html.dark .tp-taxonomy-load-more:hover { border-color: #3a3a3a !important; background: #282828 !important; color: #fff !important; }

html.dark .tp-content-surface,
html.dark .pc-info-card,
html.dark .pc-info-card-v2,
html.dark .term-description,
html.dark .post-card { border-color: #2c2c2c !important; background: #222 !important; color: #cbd5e1; }
html.dark .pagination-custom li a,
html.dark .pagination-custom li span,
html.dark .pagination-loadmore .js-webcams-loadmore { border-color: #2c2c2c !important; background: #222 !important; color: #cbd5e1 !important; }
html.dark .tp-footer { border-color: #252525; background: #1a1a1a; }
html.dark .tp-footer-inner { color: #9aa7b8; }
html.dark .tp-footer-links a:hover { color: #fff; }
html.dark body.themepro-v2 footer.tp-footer {
  border-color: #252525 !important;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}
html.dark body.themepro-v2 footer.tp-footer .tp-footer-inner {
  background: transparent !important;
  background-color: transparent !important;
  color: #9aa7b8 !important;
}

@media (min-width: 640px) {
  .tp-friends-inner,
  .tp-header-inner,
  .tp-category-inner,
  .themepro-main,
  .tp-footer-inner { padding-left: 20px; padding-right: 20px; }
  .tp-brand-name { font-size: 20px; }
  .tp-cams-grid,
  #webcams-grid,
  #related-webcams-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tp-card-thumb { aspect-ratio: 16 / 9; }
  .tp-listing-head h1 { font-size: 25px; }
  .tp-live-counter { padding: 6px 12px; font-size: 11px; }
}

@media (min-width: 760px) {
  .tp-taxonomy-directory { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .tp-friends-inner,
  .tp-header-inner,
  .tp-category-inner,
  .tp-footer-inner { padding-left: 28px; padding-right: 28px; }
  .tp-header-left { gap: 20px; }
  .tp-mobile-menu-btn { display: none; }
  .tp-main-nav { display: flex; }
  .tp-mobile-search-wrap { display: block; }
  .tp-main-shell { padding-top: 28px; }
  .desktop-layout { grid-template-columns: 250px minmax(0,1fr); gap: 20px; }
  .desktop-sidebar-shell { display: block; }
  .themepro-main { padding-left: 0; padding-right: 28px; }
  .tp-cams-grid,
  #webcams-grid,
  #related-webcams-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 1280px) {
  .desktop-layout { grid-template-columns: 270px minmax(0,1fr); }
  .tp-cams-grid,
  #webcams-grid,
  #related-webcams-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  html.tp-grid-compact .tp-cams-grid,
  html.tp-grid-compact #webcams-grid,
  html.tp-grid-compact #related-webcams-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px !important; }
  html.tp-grid-compact .tp-card-body { padding: 12px; }
  html.tp-grid-compact .tp-card-avatar { width: 34px; height: 34px; }
  html.tp-grid-compact .tp-card-title { font-size: 12px; }
  html.tp-grid-compact .tp-card-meta { font-size: 9px; }
}

@media (min-width: 1440px) {
  .tp-desktop-search { display: flex; }
  .tp-mobile-search-wrap { display: none; }
}

@media (max-width: 639px) {
  .tp-sort-button span { display: none; }
  .tp-sort-button { width: 36px; padding: 0; }
  .tp-listing-head { align-items: flex-end; }
  .tp-cams-grid,
  #webcams-grid,
  #related-webcams-grid { gap: 10px !important; }
  html.tp-mobile-grid-1 .tp-cams-grid,
  html.tp-mobile-grid-1 #webcams-grid,
  html.tp-mobile-grid-1 #related-webcams-grid { grid-template-columns: minmax(0,1fr) !important; }
  html.tp-mobile-grid-2 .tp-cams-grid,
  html.tp-mobile-grid-2 #webcams-grid,
  html.tp-mobile-grid-2 #related-webcams-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  html.tp-mobile-grid-2 .tp-card-thumb { aspect-ratio: 16 / 11; }
  html.tp-mobile-grid-2 .tp-card-body { padding: 12px; }
  html.tp-mobile-grid-2 .tp-card-avatar { width: 32px; height: 32px; }
  html.tp-mobile-grid-2 .tp-card-title { font-size: 12px; }
  html.tp-mobile-grid-2 .tp-card-meta { font-size: 9px; }
}

@media (max-width: 480px) {
  .tp-header-inner { height: 68px; padding-left: 12px; padding-right: 12px; }
  .tp-header-left { gap: 10px; }
  .tp-brand { gap: 8px; }
  .tp-brand-icon { width: 30px; font-size: 24px; }
  .tp-brand-name { max-width: 128px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
  .tp-logo { max-width: 145px; height: 38px; }
  .tp-header-actions { gap: 6px; }
  .tp-icon-btn { width: 38px; height: 38px; }
  .tp-listing-head h1 { font-size: 21px; }
  .tp-live-counter { display: none; }
}

/* Mobile Grid Customizer now supplies the initial default only.
   The active mobile state is applied on <html> by themepro-v2.js/localStorage. */

/* Neutralize legacy fixed-header spacing from Theme Pro 1.x. */
body.themepro-v2 .themepro-main {
  padding-top: 0 !important;
}
body.themepro-v2 .tp-footer {
  margin-top: 40px !important;
}

/* Theme Pro 2.0.4 - bookmark badge and brand hover fixes */
#main-menu-container .tp-bookmarks-nav .tp-bookmarks-count,
#main-menu-container .tp-bookmarks-nav:hover .tp-bookmarks-count,
#main-menu-container .tp-bookmarks-nav.is-active .tp-bookmarks-count {
  background: var(--tp-accent) !important;
  background-color: var(--tp-accent) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
}

html.dark .tp-brand,
html.dark .tp-brand:hover,
html.dark .tp-brand:focus,
html.dark .tp-brand:active,
html.dark .tp-brand:hover *,
html.dark .tp-brand:focus *,
html.dark .tp-brand:active * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* Theme Pro 2.0.5 - compact More, loader icon and mobile bookmarks access */
