* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  :root {
    --box-bg: rgba(20, 20, 20, 0.6);
    --border-color: #222;
    --text-color: #fff;
  }

  body {
    background-color: #0f0f0f;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    position: relative;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 30px;
  }

  #particles-js {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    position: fixed;
    top: 0px;
    z-index: -1;
  }

  .page-title {
    text-align: center;
    font-size: 4.5rem;
    font-weight: normal;
    color: white;
    margin: 0 0 30px 0;
  }

  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 30px auto 20px;
    z-index: 2;
    position: relative;
  }

  #tv-form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #tv-address {
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(80, 80, 80, 0.3);
    color: white;
    padding: 15px 20px;
    border-radius: 20px;
    width: 100%;
    font-size: 1rem;
    outline: none;
  }

  #tv-address:focus {
    border-color: rgba(120, 120, 120, 0.5);
  }

  #tv-address::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .search-description {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 20px 0;
    max-width: 600px;
    padding: 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
  }

  .ad-container {
    background-color: rgba(20, 20, 20, 0.4);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ad-vertical-left {
    width: 160px;
    height: 300px;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .ad-vertical-right {
    width: 160px;
    height: 300px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .ad-horizontal-top {
    width: 728px;
    height: 90px;
    margin: 0 auto 30px;
  }

  .ad-horizontal-bottom {
    width: 468px;
    height: 60px;
    margin: 30px auto;
  }

  .adsterra-ref {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    background-color: rgba(20, 20, 20, 0.4);
    padding: 5px;
    border-radius: 5px;
  }

  .adsterra-ref:hover {
    opacity: 1;
  }

  .adsterra-ref img {
    border-radius: 5px;
  }

  #tv-error {
    color: #ff6b6b;
    margin-top: 15px;
    text-align: center;
  }

  #tv-error-code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 5px;
    font-family: monospace;
    max-width: 600px;
    overflow-x: auto;
    display: none;
  }

  .dock {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    background-color: rgba(20, 20, 20, 0.8);
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    border-radius: 18px;
    box-shadow: 0 0 0 1px rgba(80, 80, 80, 0.2), 
               0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
  }
  
  .dock-icons {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  
  .nav-link {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    text-decoration: none;
  }
  
  .nav-link:hover {
    transform: scale(1.15);
    opacity: 1;
  }
  
  .nav-link.active {
    opacity: 1;
  }
  
  .nav-link svg {
    width: 24px;
    height: 24px;
  }
  
  .nav-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: rgba(40, 40, 40, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    z-index: 99;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
  }
  
  .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  
  .iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    display: none;
    z-index: 10;
  }
  
  #content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
  }
  
  .search-interface {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  @media screen and (max-width: 1024px) {
    .ad-vertical-left, .ad-vertical-right {
      display: none;
    }
  }
  
  @media screen and (max-width: 768px) {
    .page-title {
      font-size: 3rem;
      margin: 0 0 20px 0;
    }
    
    .search-container {
      width: 90%;
    }
    
    #tv-address {
      padding: 12px 15px;
      font-size: 0.9rem;
    }
    
    .ad-horizontal-top {
      width: 468px;
      height: 60px;
    }
  }

  @media screen and (max-width: 500px) {
    .ad-horizontal-top, .ad-horizontal-bottom {
      width: 320px;
      height: 50px;
    }
    
    .adsterra-ref {
      bottom: 90px;
    }
  }