/* Основные стили */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--background-color);
overflow-x: hidden;
background-image: url('https://cdn1.epicgames.com/ue/product/Screenshot/6-1920x1080-7f74273417687ea1382ea51445325736.jpg?resize=1&w=1920'); /* Замените на вашу ссылку */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
transition: background-color 0.5s ease;
/* Анимированный градиентный фон */
animation: gradientBackground 15s ease infinite;
}
@keyframes gradientBackground {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Навигационная панель */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
background-color: var(--navbar-bg-color);
padding: 15px 30px;
color: white;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 6px var(--shadow-color);
transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}
.navbar:hover {
background-color: var(--navbar-hover-bg-color);
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.navbar .logo {
font-family: 'Noto Sans JP', sans-serif;
font-size: 28px;
font-weight: 700;
cursor: pointer;
transition: transform var(--transition-speed), color var(--transition-speed);
}
.navbar .logo:hover {
transform: scale(1.1);
color: #ffe6f0;
}
.navbar .nav-icons {
display: flex;
gap: 25px;
cursor: pointer;
font-size: 20px;
}
.navbar .nav-icons span {
display: flex;
align-items: center;
gap: 5px;
transition: color var(--transition-speed), transform var(--transition-speed);
}
.navbar .nav-icons span:hover {
color: var(--secondary-color);
transform: scale(1.1);
}
/* Секции */
.section {
display: none;
padding: 30px 50px;
animation: fadeIn 0.5s ease-in;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 12px;
margin: 30px auto;
max-width: 1200px;
box-shadow: 0 4px 8px var(--shadow-color);
backdrop-filter: blur(10px);
transition: all var(--transition-speed) ease;
}
.active {
display: block;
}
/* Улучшенные стили для постов */
.feed .post {
background-color: var(--card-bg-color);
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px var(--shadow-color);
animation: fadeInUp 0.5s ease-out;
display: flex;
flex-direction: column;
transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}
.feed .post:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
background-color: #ffffff;
}
.feed .post .post-header {
display: flex;
align-items: center;
gap: 15px;
}
.feed .post .post-header img {
width: 50px;
height: 50px;
border-radius: 50%;
transition: transform var(--transition-speed), filter var(--transition-speed);
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.feed .post .post-header img:hover {
transform: scale(1.1) rotate(5deg);
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.feed .post .post-header strong {
font-size: 18px;
color: var(--text-color);
font-weight: 500;
}
.feed .post .post-content {
margin-top: 15px;
animation: slideIn 0.3s ease-out;
position: relative;
font-size: 16px;
color: var(--text-color);
}
.feed .post .post-content img {
width: 100%;
max-height: 350px;
object-fit: cover;
border-radius: 8px;
margin-top: 15px;
transition: transform var(--transition-speed), filter var(--transition-speed);
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.feed .post .post-content img:hover {
transform: scale(1.05);
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.feed .post .post-actions {
display: flex;
align-items: center;
gap: 20px;
margin-top: 15px;
}
.feed .post .post-actions span {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
color: #555;
transition: color var(--transition-speed), transform var(--transition-speed), background-color var(--transition-speed);
padding: 5px 15px;
border-radius: 25px;
background-color: rgba(255, 255, 255, 0.3);
}
.feed .post .post-actions span:hover {
color: #fff;
background-color: var(--primary-color);
transform: scale(1.1);
}
/* Форма создания поста */
.create-post h2,
.anime-watch h2,
.profile h2,
.community h2 {
margin-top: 0;
color: var(--primary-color);
font-family: 'Noto Sans JP', sans-serif;
font-size: 28px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.create-post textarea,
.anime-watch .search-bar input,
.comments-section .comment-input,
.modal-content input,
.modal-content textarea {
width: 100%;
padding: 15px;
border-radius: 8px;
border: 1px solid #ccc;
resize: none;
font-size: 16px;
box-sizing: border-box;
transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px);
margin-bottom: 15px;
font-family: 'Roboto', sans-serif;
}
.create-post textarea:focus,
.anime-watch .search-bar input:focus,
.comments-section .comment-input:focus,
.modal-content input:focus,
.modal-content textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
outline: none;
}
.create-post button,
.anime-watch .search-bar button,
.comments-section button,
.modal-content button {
padding: 12px 25px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
font-size: 16px;
font-family: 'Roboto', sans-serif;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.create-post button:hover,
.anime-watch .search-bar button:hover,
.comments-section button:hover,
.modal-content button:hover {
background-color: var(--secondary-color);
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* Профиль пользователя */
.profile .profile-header {
display: flex;
align-items: center;
gap: 25px;
margin-bottom: 20px;
}
.profile .profile-header img {
width: 120px;
height: 120px;
border-radius: 50%;
transition: transform var(--transition-speed) ease, filter var(--transition-speed) ease;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.profile .profile-header img:hover {
transform: scale(1.1) rotate(5deg);
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.profile .profile-header h2 {
margin: 0;
color: var(--text-color);
font-size: 24px;
}
.profile .profile-header p {
color: var(--light-text-color);
font-size: 16px;
}
.profile .profile-content h3 {
margin-bottom: 10px;
color: var(--primary-color);
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
font-size: 22px;
}
.profile .profile-content p {
line-height: 1.6;
font-size: 16px;
color: var(--text-color);
}
/* Раздел просмотра аниме */
.anime-watch .anime-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
animation: fadeIn 0.5s ease-in;
}
.anime-watch .anime-item {
background-color: var(--card-bg-color);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px var(--shadow-color);
display: flex;
flex-direction: column;
transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
cursor: pointer;
}
.anime-watch .anime-item:hover {
transform: scale(1.02);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
background-color: #ffffff;
}
.anime-watch .anime-item img {
width: 100%;
height: 300px;
object-fit: cover;
transition: transform var(--transition-speed) ease;
}
.anime-watch .anime-item:hover img {
transform: scale(1.05);
}
.anime-watch .anime-info {
padding: 15px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.anime-watch .anime-info h3 {
margin: 0 0 10px 0;
font-size: 20px;
color: var(--text-color);
transition: color var(--transition-speed) ease;
}
.anime-watch .anime-info h3:hover {
color: var(--primary-color);
}
.anime-watch .anime-info p {
flex-grow: 1;
font-size: 14px;
color: var(--light-text-color);
margin-bottom: 15px;
}
.anime-watch .anime-actions {
display: flex;
justify-content: space-between;
align-items: center;
}
.anime-watch .anime-actions span {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
color: #555;
transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
padding: 5px 15px;
border-radius: 25px;
background-color: rgba(255, 255, 255, 0.3);
font-size: 14px;
}
.anime-watch .anime-actions span:hover {
color: #fff;
background-color: var(--primary-color);
transform: scale(1.1);
}
/* Видео-плеер */
.video-player {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.8);
display: none;
justify-content: center;
align-items: center;
z-index: 2000;
animation: fadeIn 0.5s ease-in;
}
.video-player .player-content {
background-color: var(--modal-bg-color);
padding: 25px;
border-radius: 10px;
width: 90%;
max-width: 800px;
position: relative;
animation: slideIn 0.5s ease-out;
box-shadow: 0 4px 8px var(--shadow-color);
backdrop-filter: blur(5px);
display: flex;
flex-direction: column;
align-items: center;
}
.video-player .player-content video {
width: 100%;
height: auto;
border-radius: 8px;
transition: transform var(--transition-speed) ease;
}
.video-player .player-content video:hover {
transform: scale(1.02);
}
.video-player .player-content .close-btn {
position: absolute;
top: -15px;
right: -15px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 50%;
width: 35px;
height: 35px;
font-size: 18px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.video-player .player-content .close-btn:hover {
background-color: var(--secondary-color);
transform: scale(1.1);
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Поиск аниме */
.anime-watch .search-bar {
display: flex;
gap: 10px;
margin-bottom: 25px;
animation: fadeIn 0.5s ease-in;
}
.anime-watch .search-bar input {
flex: 1;
border: 1px solid #ccc;
border-radius: 8px;
padding: 12px 15px;
font-size: 16px;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px);
transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.anime-watch .search-bar input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
outline: none;
}
.anime-watch .search-bar button {
padding: 12px 20px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
font-size: 16px;
}
.anime-watch .search-bar button:hover {
background-color: var(--secondary-color);
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* Рейтинги */
.rating {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
transition: transform var(--transition-speed) ease;
}
.rating:hover {
transform: scale(1.1);
}
.rating .star {
font-size: 20px;
color: #ccc;
transition: color var(--transition-speed) ease;
}
.rating .star.hover,
.rating .star.selected {
color: var(--primary-color);
}
/* Избранные аниме */
.favorite {
color: var(--primary-color);
transition: color var(--transition-speed) ease;
}
.favorite:hover {
color: var(--secondary-color);
}
/* Сообщества */
.community-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.community-header h2 {
font-family: 'Noto Sans JP', sans-serif;
font-size: 28px;
color: var(--primary-color);
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.community-header button {
padding: 12px 25px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
font-size: 16px;
font-family: 'Roboto', sans-serif;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.community-header button:hover {
background-color: var(--secondary-color);
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.groups-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
}
.group-item {
background-color: var(--card-bg-color);
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px var(--shadow-color);
transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
cursor: pointer;
position: relative;
}
.group-item:hover {
transform: scale(1.02);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
background-color: #ffffff;
}
.group-item h3 {
margin-top: 0;
font-size: 22px;
color: var(--text-color);
font-family: 'Noto Sans JP', sans-serif;
margin-bottom: 10px;
}
.group-item p {
color: var(--light-text-color);
font-size: 16px;
margin-bottom: 15px;
}
.group-item .group-actions {
position: absolute;
top: 15px;
right: 15px;
}
.group-item .group-actions span {
font-size: 20px;
color: #555;
transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.group-item .group-actions span:hover {
color: var(--primary-color);
transform: scale(1.2);
}
/* Модальные окна */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.8);
display: none;
justify-content: center;
align-items: center;
z-index: 3000;
animation: fadeIn 0.5s ease-in;
}
.modal-content {
background-color: var(--modal-bg-color);
padding: 30px 40px;
border-radius: 12px;
width: 90%;
max-width: 600px;
position: relative;
animation: slideIn 0.5s ease-out;
box-shadow: 0 4px 8px var(--shadow-color);
backdrop-filter: blur(5px);
display: flex;
flex-direction: column;
align-items: center;
}
.modal-content h2 {
margin-top: 0;
color: var(--primary-color);
font-family: 'Noto Sans JP', sans-serif;
font-size: 26px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
margin-bottom: 20px;
}
.modal-content input,
.modal-content textarea {
width: 100%;
padding: 12px 15px;
border-radius: 8px;
border: 1px solid #ccc;
margin-bottom: 20px;
font-size: 16px;
transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px);
font-family: 'Roboto', sans-serif;
}
.modal-content input:focus,
.modal-content textarea:focus {
border-color: var(--primary-color);
box-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
outline: none;
}
.modal-content button {
padding: 12px 25px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
font-size: 16px;
font-family: 'Roboto', sans-serif;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.modal-content button:hover {
background-color: var(--secondary-color);
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.modal-content .cancel-btn {
background-color: #ccc;
color: #333;
margin-left: 10px;
}
/* Секция группы */
.group-section {
display: none;
}
.group-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
}
.group-header h2 {
font-family: 'Noto Sans JP', sans-serif;
font-size: 28px;
color: var(--primary-color);
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.group-header button {
padding: 12px 25px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
font-size: 16px;
font-family: 'Roboto', sans-serif;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.group-header button:hover {
background-color: var(--secondary-color);
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
#groupPosts .post {
background-color: var(--card-bg-color);
padding: 20px;
margin-bottom: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px var(--shadow-color);
animation: fadeInUp 0.5s ease-out;
display: flex;
flex-direction: column;
transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}
#groupPosts .post:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
background-color: #ffffff;
}
#groupPosts .post .post-header {
display: flex;
align-items: center;
gap: 15px;
}
#groupPosts .post .post-header img {
width: 50px;
height: 50px;
border-radius: 50%;
transition: transform var(--transition-speed), filter var(--transition-speed);
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
#groupPosts .post .post-header img:hover {
transform: scale(1.1) rotate(5deg);
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
#groupPosts .post .post-header strong {
font-size: 18px;
color: var(--text-color);
font-weight: 500;
}
#groupPosts .post .post-content {
margin-top: 15px;
animation: slideIn 0.3s ease-out;
position: relative;
font-size: 16px;
color: var(--text-color);
}
#groupPosts .post .post-content img {
width: 100%;
max-height: 350px;
object-fit: cover;
border-radius: 8px;
margin-top: 15px;
transition: transform var(--transition-speed), filter var(--transition-speed);
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
#groupPosts .post .post-content img:hover {
transform: scale(1.05);
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
#groupPosts .post .post-actions {
display: flex;
align-items: center;
gap: 20px;
margin-top: 15px;
}
#groupPosts .post .post-actions span {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
color: #555;
transition: color var(--transition-speed) ease, transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
padding: 5px 15px;
border-radius: 25px;
background-color: rgba(255, 255, 255, 0.3);
}
#groupPosts .post .post-actions span:hover {
color: #fff;
background-color: var(--primary-color);
transform: scale(1.1);
}
/* События */
.events-list {
display: flex;
flex-direction: column;
gap: 20px;
margin-bottom: 30px;
}
.event-item {
background-color: var(--card-bg-color);
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px var(--shadow-color);
transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}
.event-item:hover {
transform: scale(1.01);
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
background-color: #ffffff;
}
.event-item h3 {
margin-top: 0;
font-size: 20px;
color: var(--text-color);
font-family: 'Noto Sans JP', sans-serif;
}
.event-item p {
color: var(--light-text-color);
font-size: 16px;
margin-bottom: 10px;
}
.event-map iframe {
width: 100%;
height: 400px;
border: none;
border-radius: 10px;
box-shadow: 0 4px 8px var(--shadow-color);
}
/* Адаптивные стили */
@media (max-width: 1200px) {
.navbar {
padding: 15px 20px;
}
.navbar .logo {
font-size: 24px;
}
.navbar .nav-icons {
gap: 15px;
font-size: 18px;
}
.section {
padding: 25px 30px;
margin: 25px auto;
}
.community-header h2,
.group-header h2,
.feed .post .post-header strong {
font-size: 24px;
}
.community-header button,
.group-header button,
.create-post button,
.anime-watch .search-bar button,
.comments-section button,
.modal-content button {
padding: 10px 20px;
font-size: 14px;
}
.groups-list {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.anime-watch .anime-list {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
#eventMap iframe {
height: 300px;
}
}
@media (max-width: 768px) {
.navbar {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.navbar .logo {
font-size: 20px;
}
.navbar .nav-icons {
gap: 10px;
font-size: 16px;
}
.section {
padding: 20px 15px;
margin: 20px auto;
}
.community-header h2,
.group-header h2 {
font-size: 22px;
}
.groups-list,
.anime-watch .anime-list {
grid-template-columns: 1fr;
}
#eventMap iframe {
height: 250px;
}
}
@media (max-width: 480px) {
.navbar {
padding: 10px 15px;
}
.navbar .logo {
font-size: 18px;
}
.navbar .nav-icons {
gap: 8px;
font-size: 14px;
}
.section {
padding: 15px 10px;
margin: 15px auto;
}
.community-header h2,
.group-header h2 {
font-size: 20px;
}
.modal-content {
padding: 20px 25px;
}
.modal-content h2 {
font-size: 24px;
}
.modal-content button {
padding: 10px 20px;
font-size: 14px;
}
.anime-watch .anime-list {
grid-template-columns: 1fr;
}
#groupPosts .post .post-content img,
.feed .post .post-content img {
max-height: 250px;
}
#eventMap iframe {
height: 200px;
}
}
/* Анимации */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
@keyframes popIn {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
/* Кастомные скроллы */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary-color);
}
/* Местоположение на карте */
.event-map {
margin-top: 20px;
} из этого /* Общие стили */
body {
margin: 0;
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
color: #333;
}
.active {
display: block !important;
}
.section {
display: none;
padding: 20px;
}
/* Навигационная панель */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #2c3e50;
padding: 15px 30px;
color: #ecf0f1;
position: sticky;
top: 0;
z-index: 1000;
}
.logo {
font-size: 24px;
font-weight: 700;
cursor: pointer;
}
.nav-icons span {
margin-left: 20px;
cursor: pointer;
font-size: 18px;
transition: color 0.3s;
}
.nav-icons span:hover {
color: #3498db;
}
/* Лента постов */
.feed {
max-width: 800px;
margin: 0 auto;
}
.post {
background-color: #fff;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.post:hover {
transform: translateY(-5px);
}
.post-header {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.post-header img {
width: 50px;
height: 50px;
border-radius: 50%;
margin-right: 10px;
object-fit: cover;
}
.post-content img {
max-width: 100%;
border-radius: 8px;
margin-top: 10px;
}
.post-actions {
display: flex;
align-items: center;
margin-top: 10px;
}
.post-actions span {
margin-right: 15px;
cursor: pointer;
display: flex;
align-items: center;
transition: color 0.3s;
}
.post-actions span:hover {
color: #3498db;
}
.like-count, .favorite-count {
margin-left: 5px;
font-weight: 500;
}
/* Формы и модальные окна */
.create-post textarea, .create-post input[type="text"],
.modal-content input, .modal-content textarea {
width: 100%;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 6px;
margin-bottom: 15px;
font-size: 16px;
resize: vertical;
}
.create-post button, .modal-content button {
padding: 10px 20px;
background-color: #3498db;
border: none;
border-radius: 6px;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
margin-right: 10px;
}
.create-post button:hover, .modal-content button:hover {
background-color: #2980b9;
}
.modal {
display: none;
position: fixed;
top:0;
left:0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
z-index: 2000;
}
.modal-content {
background-color: #fff;
padding: 25px 30px;
border-radius: 12px;
width: 90%;
max-width: 500px;
position: relative;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.cancel-btn {
background-color: #e74c3c;
}
.cancel-btn:hover {
background-color: #c0392b;
}
.close-btn {
position: absolute;
top: 15px;
right: 15px;
background-color: #e74c3c;
color: #fff;
border: none;
border-radius: 50%;
width: 35px;
height: 35px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s, transform 0.2s;
}
.close-btn:hover {
background-color: #c0392b;
transform: scale(1.1);
}
/* Сообщества */
.community-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.groups-list .group-item {
background-color: #fff;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
.groups-list .group-item:hover {
background-color: #ecf0f1;
transform: translateY(-3px);
}
.group-actions {
position: absolute;
top: 15px;
right: 15px;
font-size: 18px;
color: #7f8c8d;
}
/* Секция группы */
.group-section .group-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.events-list .event-item {
background-color: #fff;
border-left: 4px solid #3498db;
padding: 15px;
margin-bottom: 15px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Профиль */
.profile-header {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.profile-header img {
width: 80px;
height: 80px;
border-radius: 50%;
margin-right: 15px;
object-fit: cover;
}
.profile-content h3 {
margin-top: 20px;
}
/* Видео-плеер */
.video-player {
display: none;
position: fixed;
top:0;
left:0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
justify-content: center;
align-items: center;
z-index: 3000;
}
.player-content {
position: relative;
background-color: #000;
padding: 20px;
border-radius: 8px;
}
.player-content video {
max-width: 90vw;
max-height: 80vh;
border-radius: 8px;
}
/* Дополнительные стили */
.search-bar {
display: flex;
margin-bottom: 20px;
}
.search-bar input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 6px 0 0 6px;
font-size: 16px;
}
.search-bar button {
padding: 10px 15px;
border: none;
background-color: #3498db;
color: #fff;
border-radius: 0 6px 6px 0;
cursor: pointer;
transition: background-color 0.3s;
}
.search-bar button:hover {
background-color: #2980b9;
}
.anime-item {
display: flex;
background-color: #fff;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.anime-item:hover {
transform: translateY(-3px);
}
.anime-item img {
width: 120px;
height: 170px;
border-radius: 8px;
object-fit: cover;
margin-right: 15px;
}
.anime-info h3 {
margin: 0;
margin-bottom: 10px;
}
.anime-actions {
display: flex;
align-items: center;
margin-top: 10px;
}
.anime-actions .rating .star {
font-size: 20px;
cursor: pointer;
color: #ccc;
transition: color 0.2s;
}
.anime-actions .rating .star.selected {
color: #f1c40f;
}
/* Секции по умолчанию скрыты */
#groupSection {
display: none;
}