
* {
    -webkit-tap-highlight-color: transparent;
  }

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: Montserrat, Helvetica, sans-serif;
}

h1 {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
    margin: 70px 25px 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    height: auto;
}

h2 {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    font-size: 16px;
    margin: 0px 25px 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    height: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 15px 10px 0 10px;
    box-sizing: border-box;
    margin-bottom: 70px;
}

.app-item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #222222;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 1;
    transition: all 0.2s ease;
}

.app-checkbox {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-left: auto;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    border: rgba(255,255,255,0.15) 1px solid;
    padding: 5px;
}

.app-checkbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    /* object-fit: contain; */
    pointer-events: none;
    z-index: 2;
}

.app-checkbox.active .app-checkbox-inner {
    background-color: #376DD1;
}

/* .app-checkbox.active {
    background-color: #4294FF;
} */

.opened {
    /* opacity: 0.5; */
    background-color: #111111;
}

.app-item.opened .app-icon, .app-item.opened .app-name {
    opacity: 0.5;
}

.app-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.app-name {
    font-size: 16px;
    font-weight: 100;
    color: #FFFFFF;
    transition: all 0.2s ease;
}

.search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 200;
    border: 1px solid #2d2d2d;
    border-radius: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    font-family: inherit;
    letter-spacing: inherit;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.search-input:focus {
    outline: none;
    border-color: #343434;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Добавляем стили для скрытых элементов */
.app-item.hidden {
    display: none;
}

/* Добавить в конец файла */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.clear-search {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    display: none;
}

.clear-search.visible {
    display: block;
}

.search-input:not(:placeholder-shown) + .clear-search {
    display: block;
}





/* Стили для таббара */
.t975 {
    background-color: rgba(255, 255, 255, 0.10);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.t975__wrapper {
    padding: 10px;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
}

.t975__inner-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.t975__list-item {
    flex: 1;
    text-align: center;
}

.t975__menu-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.t975__menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.t975__icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t975__menu-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.t975__menu-text {
    font-size: 12px;
    color: #FFFFFF;
    margin-top: 2px;
}